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