mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
e84e8a7cf6
- Move Advanced class definition into .cpp file anonymous namespace - Export only Type AdvancedId() in header - Keep exported helper functions (SetupConnectionType, HasUpdate, etc.) - Remove unused SetupWindowCloseBehaviorContent declaration - Update callers to use AdvancedId() instead of Advanced::Id() Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
53 lines
1.3 KiB
C++
53 lines
1.3 KiB
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 Main {
|
|
class Account;
|
|
class Session;
|
|
} // namespace Main
|
|
|
|
namespace Ui {
|
|
class GenericBox;
|
|
class VerticalLayout;
|
|
} // namespace Ui
|
|
|
|
namespace Window {
|
|
class Controller;
|
|
class SessionController;
|
|
} // namespace Window
|
|
|
|
namespace Settings {
|
|
|
|
[[nodiscard]] Type AdvancedId();
|
|
|
|
void SetupConnectionType(
|
|
not_null<Window::Controller*> controller,
|
|
not_null<::Main::Account*> account,
|
|
not_null<Ui::VerticalLayout*> container);
|
|
bool HasUpdate();
|
|
void SetupUpdate(not_null<Ui::VerticalLayout*> container);
|
|
void SetupWindowTitleContent(
|
|
Window::SessionController *controller,
|
|
not_null<Ui::VerticalLayout*> container);
|
|
void SetupSystemIntegrationContent(
|
|
Window::SessionController *controller,
|
|
not_null<Ui::VerticalLayout*> container);
|
|
void SetupAnimations(
|
|
not_null<Window::Controller*> window,
|
|
not_null<Ui::VerticalLayout*> container);
|
|
|
|
void ArchiveSettingsBox(
|
|
not_null<Ui::GenericBox*> box,
|
|
not_null<Window::SessionController*> controller);
|
|
void PreloadArchiveSettings(not_null<::Main::Session*> session);
|
|
|
|
} // namespace Settings
|