2022-03-28 20:12:38 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Ui {
|
2022-03-31 21:32:03 +00:00
|
|
|
#if 0
|
2022-03-28 20:12:38 +00:00
|
|
|
class PopupMenu;
|
|
|
|
class RpWidget;
|
2022-03-31 21:32:03 +00:00
|
|
|
#endif
|
2022-03-28 20:12:38 +00:00
|
|
|
class Show;
|
2022-03-31 21:32:03 +00:00
|
|
|
class GenericBox;
|
2022-03-28 20:12:38 +00:00
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
namespace TTLMenu {
|
|
|
|
|
|
|
|
struct Args {
|
|
|
|
std::shared_ptr<Ui::Show> show;
|
|
|
|
TimeId startTtl;
|
2022-11-29 20:09:57 +00:00
|
|
|
rpl::producer<TextWithEntities> about;
|
2022-11-30 10:06:17 +00:00
|
|
|
Fn<void(TimeId, Fn<void()>)> callback;
|
2022-11-27 14:54:24 +00:00
|
|
|
bool hideDisable = false;
|
2022-03-28 20:12:38 +00:00
|
|
|
};
|
|
|
|
|
2022-03-31 21:32:03 +00:00
|
|
|
void TTLBox(not_null<Ui::GenericBox*> box, Args args);
|
|
|
|
#if 0
|
2022-03-28 20:12:38 +00:00
|
|
|
void FillTTLMenu(not_null<Ui::PopupMenu*> menu, Args args);
|
|
|
|
|
|
|
|
void SetupTTLMenu(
|
|
|
|
not_null<Ui::RpWidget*> parent,
|
|
|
|
rpl::producer<> triggers,
|
|
|
|
Args args);
|
2022-03-31 21:32:03 +00:00
|
|
|
#endif
|
2022-03-28 20:12:38 +00:00
|
|
|
|
|
|
|
} // namespace TTLMenu
|