Files
AyuGramDesktop/Telegram/SourceFiles/settings/sections/settings_active_sessions.h
T
2026-01-28 11:55:20 +04:00

48 lines
1014 B
C++

/*
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
#include "settings/settings_common_session.h"
#include "settings/settings_type.h"
namespace Ui {
class VerticalLayout;
} // namespace Ui
namespace Settings {
class Sessions : public Section<Sessions> {
public:
Sessions(
QWidget *parent,
not_null<Window::SessionController*> controller);
[[nodiscard]] rpl::producer<QString> title() override;
void showFinished() override;
private:
void setupContent();
QPointer<Ui::RpWidget> _terminateAll;
QPointer<Ui::RpWidget> _autoTerminate;
};
void AddSessionInfoRow(
not_null<Ui::VerticalLayout*> container,
rpl::producer<QString> label,
const QString &value,
const style::icon &icon);
namespace Builder {
extern SectionBuildMethod SessionsSection;
} // namespace Builder
} // namespace Settings