2015-04-02 13:33:19 +03:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 13:23:14 +03:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2015-04-02 13:33:19 +03:00
|
|
|
|
2018-01-03 13:23:14 +03:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2015-04-02 13:33:19 +03:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2023-11-15 00:54:32 +03:00
|
|
|
#include "settings/settings_common_session.h"
|
2016-10-28 00:19:38 +03:00
|
|
|
|
2023-08-18 17:03:50 +02:00
|
|
|
namespace Ui {
|
|
|
|
class VerticalLayout;
|
|
|
|
} // namespace Ui
|
2019-07-25 20:55:11 +02:00
|
|
|
|
2020-09-05 17:48:15 +03:00
|
|
|
namespace Settings {
|
|
|
|
|
2022-04-01 15:53:23 +04:00
|
|
|
class Sessions : public Section<Sessions> {
|
2020-09-05 17:48:15 +03:00
|
|
|
public:
|
|
|
|
Sessions(
|
|
|
|
QWidget *parent,
|
|
|
|
not_null<Window::SessionController*> controller);
|
|
|
|
|
2022-04-13 12:05:10 +04:00
|
|
|
[[nodiscard]] rpl::producer<QString> title() override;
|
2022-04-01 15:53:23 +04:00
|
|
|
|
2020-09-05 17:48:15 +03:00
|
|
|
private:
|
|
|
|
void setupContent(not_null<Window::SessionController*> controller);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2023-08-18 17:03:50 +02:00
|
|
|
void AddSessionInfoRow(
|
|
|
|
not_null<Ui::VerticalLayout*> container,
|
|
|
|
rpl::producer<QString> label,
|
|
|
|
const QString &value,
|
|
|
|
const style::icon &icon);
|
2016-12-13 20:07:56 +03:00
|
|
|
|
2023-08-18 17:03:50 +02:00
|
|
|
} // namespace Settings
|