Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Close stale issues and PRs / stale (push) Successful in 13s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
66 lines
1.6 KiB
C++
66 lines
1.6 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_common_session.h"
|
|
|
|
namespace Main {
|
|
class Account;
|
|
class Session;
|
|
} // namespace Main
|
|
|
|
namespace Ui {
|
|
class GenericBox;
|
|
} // namespace Ui
|
|
|
|
namespace Window {
|
|
class Controller;
|
|
class SessionController;
|
|
} // namespace Window
|
|
|
|
namespace Settings {
|
|
|
|
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 SetupWindowCloseBehaviorContent(
|
|
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);
|
|
|
|
class Advanced : public Section<Advanced> {
|
|
public:
|
|
Advanced(
|
|
QWidget *parent,
|
|
not_null<Window::SessionController*> controller);
|
|
|
|
[[nodiscard]] rpl::producer<QString> title() override;
|
|
|
|
private:
|
|
void setupContent(not_null<Window::SessionController*> controller);
|
|
|
|
};
|
|
|
|
} // namespace Settings
|