tdesktop/Telegram/SourceFiles/boxes/sessions_box.h
2023-08-18 17:03:50 +02:00

38 lines
818 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.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;
private:
void setupContent(not_null<Window::SessionController*> controller);
};
void AddSessionInfoRow(
not_null<Ui::VerticalLayout*> container,
rpl::producer<QString> label,
const QString &value,
const style::icon &icon);
} // namespace Settings