tdesktop/Telegram/SourceFiles/boxes/sessions_box.h

38 lines
818 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
#include "settings/settings_common.h"
2023-08-18 15:03:50 +00:00
namespace Ui {
class VerticalLayout;
} // namespace Ui
2019-07-25 18:55:11 +00:00
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);
};
2023-08-18 15:03:50 +00:00
void AddSessionInfoRow(
not_null<Ui::VerticalLayout*> container,
rpl::producer<QString> label,
const QString &value,
const style::icon &icon);
2023-08-18 15:03:50 +00:00
} // namespace Settings