mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-26 07:22:12 +00:00
480dcd8a7a
- Move Main class definition from header to .cpp file - Export only Type MainId() from header - Update all external references from Main::Id() to MainId() - Remove Builder::MainSection export from namespace - Add missing includes for settings_common_session.h where needed Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
47 lines
1.2 KiB
C++
47 lines
1.2 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 Window {
|
|
class Controller;
|
|
class SessionController;
|
|
} // namespace Window
|
|
|
|
namespace Ui {
|
|
class VerticalLayout;
|
|
} // namespace Ui
|
|
|
|
namespace Settings {
|
|
|
|
[[nodiscard]] Type MainId();
|
|
|
|
void SetupLanguageButton(
|
|
not_null<Window::Controller*> window,
|
|
not_null<Ui::VerticalLayout*> container);
|
|
bool HasInterfaceScale();
|
|
void SetupInterfaceScale(
|
|
not_null<Window::Controller*> window,
|
|
not_null<Ui::VerticalLayout*> container,
|
|
bool icon = true);
|
|
|
|
void SetupValidatePhoneNumberSuggestion(
|
|
not_null<Window::SessionController*> controller,
|
|
not_null<Ui::VerticalLayout*> container,
|
|
Fn<void(Type)> showOther);
|
|
void SetupValidatePasswordSuggestion(
|
|
not_null<Window::SessionController*> controller,
|
|
not_null<Ui::VerticalLayout*> container,
|
|
Fn<void(Type)> showOther);
|
|
|
|
void OpenFaq(base::weak_ptr<Window::SessionController> weak);
|
|
void OpenAskQuestionConfirm(not_null<Window::SessionController*> window);
|
|
|
|
} // namespace Settings
|