2017-11-08 20:45:30 +04:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 13:23:14 +03:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2017-11-08 20:45:30 +04:00
|
|
|
|
2018-01-03 13:23:14 +03:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2017-11-08 20:45:30 +04:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "boxes/abstract_box.h"
|
|
|
|
|
|
|
|
class ManagePeerBox : public BoxContent {
|
|
|
|
public:
|
2019-01-07 16:55:49 +04:00
|
|
|
ManagePeerBox(QWidget*, not_null<PeerData*> peer);
|
2017-11-08 20:45:30 +04:00
|
|
|
|
2019-01-07 16:55:49 +04:00
|
|
|
static bool Available(not_null<PeerData*> peer);
|
2017-11-08 20:45:30 +04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void prepare() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void setupContent();
|
|
|
|
|
2019-01-07 16:55:49 +04:00
|
|
|
not_null<PeerData*> _peer;
|
2017-11-08 20:45:30 +04:00
|
|
|
|
|
|
|
};
|