settings_active_sessions.h 826 B

12345678910111213141516171819202122232425262728293031323334353637
  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 "settings/settings_common_session.h"
  9. namespace Ui {
  10. class VerticalLayout;
  11. } // namespace Ui
  12. namespace Settings {
  13. class Sessions : public Section<Sessions> {
  14. public:
  15. Sessions(
  16. QWidget *parent,
  17. not_null<Window::SessionController*> controller);
  18. [[nodiscard]] rpl::producer<QString> title() override;
  19. private:
  20. void setupContent(not_null<Window::SessionController*> controller);
  21. };
  22. void AddSessionInfoRow(
  23. not_null<Ui::VerticalLayout*> container,
  24. rpl::producer<QString> label,
  25. const QString &value,
  26. const style::icon &icon);
  27. } // namespace Settings