mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
7dbeb56111
- Move Sessions class to anonymous namespace in .cpp file - Export only Type SessionsId() in header - Use builder pattern with custom buildMethod for widget creation - Handle highlights registration through WidgetContext - Rename local Type enum to DeviceType to avoid conflict with Settings::Type - Update all references to Sessions::Id() in other files to use SessionsId() Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
642 B
C++
31 lines
642 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_type.h"
|
|
|
|
namespace Ui {
|
|
class VerticalLayout;
|
|
} // namespace Ui
|
|
|
|
namespace Window {
|
|
class SessionController;
|
|
} // namespace Window
|
|
|
|
namespace Settings {
|
|
|
|
[[nodiscard]] Type SessionsId();
|
|
|
|
void AddSessionInfoRow(
|
|
not_null<Ui::VerticalLayout*> container,
|
|
rpl::producer<QString> label,
|
|
const QString &value,
|
|
const style::icon &icon);
|
|
|
|
} // namespace Settings
|