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 {
|
|
|
|
|
|
|
|
class Sessions : public Section {
|
|
|
|
public:
|
|
|
|
Sessions(
|
|
|
|
QWidget *parent,
|
|
|
|
not_null<Window::SessionController*> controller);
|
|
|
|
|
|
|
|
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:
|
2019-07-25 18:55:11 +00:00
|
|
|
SessionsBox(QWidget*, not_null<Main::Session*> session);
|
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:
|
2019-07-25 18:55:11 +00:00
|
|
|
const not_null<Main::Session*> _session;
|
2018-11-20 10:03:44 +00:00
|
|
|
|
2015-04-02 10:33:19 +00:00
|
|
|
};
|