| 12345678910111213141516171819202122232425262728293031323334353637 |
- /*
- This file is part of Telegram Desktop,
- the official desktop application for the Telegram messaging service.
- For license and copyright information please follow this link:
- https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
- */
- #pragma once
- #include "settings/settings_common_session.h"
- namespace Ui {
- class VerticalLayout;
- } // namespace Ui
- namespace Settings {
- class Sessions : public Section<Sessions> {
- public:
- Sessions(
- QWidget *parent,
- not_null<Window::SessionController*> controller);
- [[nodiscard]] rpl::producer<QString> title() override;
- private:
- void setupContent(not_null<Window::SessionController*> controller);
- };
- void AddSessionInfoRow(
- not_null<Ui::VerticalLayout*> container,
- rpl::producer<QString> label,
- const QString &value,
- const style::icon &icon);
- } // namespace Settings
|