ZaStoGram_desktop/Telegram/SourceFiles/settings/sections/settings_main.h
John Preston 83196be6ec Validate translated URLs before opening them
Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-3TX77RRX.
2026-10-26 23:47:50 +04:00

47 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 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 OpenFeatures(base::weak_ptr<Window::SessionController> weak);
void OpenAskQuestionConfirm(not_null<Window::SessionController*> window);
} // namespace Settings