session_show.h 570 B

12345678910111213141516171819202122232425
  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. #include "ui/layers/show.h"
  9. namespace Main {
  10. class Session;
  11. class SessionShow : public Ui::Show {
  12. public:
  13. [[nodiscard]] virtual Main::Session &session() const = 0;
  14. };
  15. [[nodiscard]] std::shared_ptr<SessionShow> MakeSessionShow(
  16. std::shared_ptr<Ui::Show> show,
  17. not_null<Session*> session);
  18. } // namespace Main