calls_group_toasts.h 736 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 Calls {
  9. class GroupCall;
  10. } // namespace Calls
  11. namespace Calls::Group {
  12. class Panel;
  13. class Toasts final {
  14. public:
  15. explicit Toasts(not_null<Panel*> panel);
  16. private:
  17. void setup();
  18. void setupJoinAsChanged();
  19. void setupTitleChanged();
  20. void setupRequestedToSpeak();
  21. void setupAllowedToSpeak();
  22. void setupPinnedVideo();
  23. void setupError();
  24. const not_null<Panel*> _panel;
  25. const not_null<GroupCall*> _call;
  26. rpl::lifetime _lifetime;
  27. };
  28. } // namespace Calls::Group