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
|
|
|
|
|
2017-04-06 14:38:10 +00:00
|
|
|
#include "boxes/abstract_box.h"
|
2020-09-05 14:48:15 +00:00
|
|
|
#include "settings/settings_common.h"
|
2016-10-27 21:19:38 +00:00
|
|
|
|
2019-07-25 18:55:11 +00:00
|
|
|
namespace Main {
|
|
|
|
class Session;
|
|
|
|
} // namespace Main
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Settings
|
|
|
|
|
2019-11-27 08:02:56 +00:00
|
|
|
class SessionsBox : public Ui::BoxContent {
|
2016-10-20 16:32:15 +00:00
|
|
|
public:
|
2021-11-25 20:52:06 +00:00
|
|
|
SessionsBox(QWidget*, not_null<Window::SessionController*> controller);
|
2016-10-20 16:32:15 +00:00
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
protected:
|
|
|
|
void prepare() override;
|
|
|
|
|
2016-10-20 16:32:15 +00:00
|
|
|
private:
|
2021-11-25 20:52:06 +00:00
|
|
|
const not_null<Window::SessionController*> _controller;
|
2018-11-20 10:03:44 +00:00
|
|
|
|
2015-04-02 10:33:19 +00:00
|
|
|
};
|