2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-06 01:16:12 +00:00
Files
tdesktop/Telegram/SourceFiles/info/profile/info_profile_actions.h

68 lines
1.5 KiB
C
Raw Normal View History

2017-11-07 15:53:05 +04:00
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
2017-11-07 15:53:05 +04:00
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
2017-11-07 15:53:05 +04:00
*/
#pragma once
2019-09-13 15:22:54 +03:00
#include "base/object_ptr.h"
2017-11-07 15:53:05 +04:00
namespace Ui {
class RpWidget;
class VerticalLayout;
} // namespace Ui
2017-11-07 15:53:05 +04:00
namespace Data {
class ForumTopic;
} // namespace Data
2017-11-07 15:53:05 +04:00
namespace Info {
2017-11-07 15:53:05 +04:00
class Controller;
} // namespace Info
2017-11-07 15:53:05 +04:00
namespace Info::Profile {
2017-11-07 15:53:05 +04:00
extern const char kOptionShowPeerIdBelowAbout[];
extern const char kOptionShowChannelJoinedBelowAbout[];
class Cover;
struct Origin;
2017-11-07 15:53:05 +04:00
object_ptr<Ui::RpWidget> SetupDetails(
not_null<Controller*> controller,
not_null<Ui::RpWidget*> parent,
not_null<PeerData*> peer,
Origin origin);
2017-11-07 15:53:05 +04:00
object_ptr<Ui::RpWidget> SetupDetails(
not_null<Controller*> controller,
not_null<Ui::RpWidget*> parent,
not_null<Data::ForumTopic*> topic);
2017-11-07 15:53:05 +04:00
object_ptr<Ui::RpWidget> SetupActions(
not_null<Controller*> controller,
not_null<Ui::RpWidget*> parent,
not_null<PeerData*> peer);
object_ptr<Ui::RpWidget> SetupChannelMembersAndManage(
not_null<Controller*> controller,
not_null<Ui::RpWidget*> parent,
not_null<PeerData*> peer);
Cover *AddCover(
not_null<Ui::VerticalLayout*> container,
not_null<Controller*> controller,
not_null<PeerData*> peer,
Data::ForumTopic *topic);
void AddDetails(
not_null<Ui::VerticalLayout*> container,
not_null<Controller*> controller,
not_null<PeerData*> peer,
Data::ForumTopic *topic,
Origin origin);
} // namespace Info::Profile