menu_ttl.h 806 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. namespace Ui {
  9. #if 0
  10. class PopupMenu;
  11. class RpWidget;
  12. #endif
  13. class Show;
  14. class GenericBox;
  15. } // namespace Ui
  16. namespace TTLMenu {
  17. struct Args {
  18. std::shared_ptr<Ui::Show> show;
  19. TimeId startTtl;
  20. rpl::producer<TextWithEntities> about;
  21. Fn<void(TimeId, Fn<void()>)> callback;
  22. bool hideDisable = false;
  23. };
  24. void TTLBox(not_null<Ui::GenericBox*> box, Args args);
  25. #if 0
  26. void FillTTLMenu(not_null<Ui::PopupMenu*> menu, Args args);
  27. void SetupTTLMenu(
  28. not_null<Ui::RpWidget*> parent,
  29. rpl::producer<> triggers,
  30. Args args);
  31. #endif
  32. } // namespace TTLMenu