tdesktop/Telegram/SourceFiles/boxes/sessions_box.h

45 lines
932 B
C
Raw Normal View History

/*
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
2017-04-06 14:38:10 +00:00
#include "boxes/abstract_box.h"
#include "settings/settings_common.h"
2019-07-25 18:55:11 +00:00
namespace Main {
class Session;
} // namespace Main
namespace Settings {
class Sessions : public Section<Sessions> {
public:
Sessions(
QWidget *parent,
not_null<Window::SessionController*> controller);
[[nodiscard]] static rpl::producer<QString> Title();
private:
void setupContent(not_null<Window::SessionController*> controller);
};
} // namespace Settings
2019-11-27 08:02:56 +00:00
class SessionsBox : public Ui::BoxContent {
public:
SessionsBox(QWidget*, not_null<Window::SessionController*> controller);
protected:
void prepare() override;
private:
const not_null<Window::SessionController*> _controller;
};