dialogs_stories_content.h 871 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 Data {
  9. enum class StorySourcesList : uchar;
  10. class Story;
  11. } // namespace Data
  12. namespace Main {
  13. class Session;
  14. } // namespace Main
  15. namespace Window {
  16. class SessionController;
  17. } // namespace Window
  18. namespace Dialogs::Stories {
  19. struct Content;
  20. struct ShowMenuRequest;
  21. [[nodiscard]] rpl::producer<Content> ContentForSession(
  22. not_null<Main::Session*> session,
  23. Data::StorySourcesList list);
  24. [[nodiscard]] rpl::producer<Content> LastForPeer(not_null<PeerData*> peer);
  25. void FillSourceMenu(
  26. not_null<Window::SessionController*> controller,
  27. const ShowMenuRequest &request);
  28. } // namespace Dialogs::Stories