2018-09-05 19:05:49 +00:00
|
|
|
/*
|
|
|
|
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.h"
|
|
|
|
|
2020-06-10 14:52:44 +00:00
|
|
|
namespace Main {
|
|
|
|
class Account;
|
|
|
|
} // namespace Main
|
|
|
|
|
2021-06-13 07:37:52 +00:00
|
|
|
namespace Window {
|
|
|
|
class Controller;
|
|
|
|
} // namespace Window
|
|
|
|
|
2018-09-05 19:05:49 +00:00
|
|
|
namespace Settings {
|
|
|
|
|
2020-06-10 14:52:44 +00:00
|
|
|
void SetupConnectionType(
|
2021-06-13 07:37:52 +00:00
|
|
|
not_null<Window::Controller*> controller,
|
2022-04-01 11:53:23 +00:00
|
|
|
not_null<::Main::Account*> account,
|
2020-06-10 14:52:44 +00:00
|
|
|
not_null<Ui::VerticalLayout*> container);
|
2018-09-11 18:07:04 +00:00
|
|
|
bool HasUpdate();
|
2022-01-25 13:25:51 +00:00
|
|
|
void SetupUpdate(
|
|
|
|
not_null<Ui::VerticalLayout*> container,
|
|
|
|
Fn<void(Type)> showOther);
|
2021-05-25 20:38:01 +00:00
|
|
|
void SetupSystemIntegrationContent(
|
|
|
|
Window::SessionController *controller,
|
|
|
|
not_null<Ui::VerticalLayout*> container);
|
2018-09-20 17:56:45 +00:00
|
|
|
void SetupAnimations(not_null<Ui::VerticalLayout*> container);
|
2018-09-11 18:07:04 +00:00
|
|
|
|
2022-04-01 11:53:23 +00:00
|
|
|
class Advanced : public Section<Advanced> {
|
2018-09-05 19:05:49 +00:00
|
|
|
public:
|
2019-07-24 14:00:30 +00:00
|
|
|
Advanced(
|
|
|
|
QWidget *parent,
|
|
|
|
not_null<Window::SessionController*> controller);
|
2018-09-05 19:05:49 +00:00
|
|
|
|
2022-04-13 08:05:10 +00:00
|
|
|
[[nodiscard]] rpl::producer<QString> title() override;
|
2022-04-01 11:53:23 +00:00
|
|
|
|
2019-01-11 09:04:28 +00:00
|
|
|
rpl::producer<Type> sectionShowOther() override;
|
|
|
|
|
2018-09-05 19:05:49 +00:00
|
|
|
private:
|
2019-07-24 14:00:30 +00:00
|
|
|
void setupContent(not_null<Window::SessionController*> controller);
|
2018-09-05 19:05:49 +00:00
|
|
|
|
2019-01-11 09:04:28 +00:00
|
|
|
rpl::event_stream<Type> _showOther;
|
|
|
|
|
2018-09-05 19:05:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Settings
|