2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-23 02:47:13 +00:00

69 lines
1.7 KiB
C
Raw Normal View History

2018-09-05 22:05:49 +03: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_session.h"
2018-09-05 22:05:49 +03:00
2020-06-10 18:52:44 +04:00
namespace Main {
class Account;
2023-08-11 16:20:38 +02:00
class Session;
2020-06-10 18:52:44 +04:00
} // namespace Main
2023-08-11 16:20:38 +02:00
namespace Ui {
class GenericBox;
} // namespace Ui
namespace Window {
class Controller;
2023-08-11 16:20:38 +02:00
class SessionController;
} // namespace Window
2018-09-05 22:05:49 +03:00
namespace Settings {
2020-06-10 18:52:44 +04:00
void SetupConnectionType(
not_null<Window::Controller*> controller,
not_null<::Main::Account*> account,
2020-06-10 18:52:44 +04:00
not_null<Ui::VerticalLayout*> container);
2018-09-11 21:07:04 +03:00
bool HasUpdate();
2022-08-16 19:45:15 +03:00
void SetupUpdate(
not_null<Window::Controller*> controller,
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);
2023-02-21 16:31:55 +04:00
void SetupAnimations(
not_null<Window::Controller*> window,
not_null<Ui::VerticalLayout*> container);
2018-09-11 21:07:04 +03:00
2023-08-11 16:20:38 +02:00
void ArchiveSettingsBox(
not_null<Ui::GenericBox*> box,
not_null<Window::SessionController*> controller);
void PreloadArchiveSettings(not_null<::Main::Session*> session);
class Advanced : public Section<Advanced> {
2018-09-05 22:05:49 +03:00
public:
2019-07-24 16:00:30 +02:00
Advanced(
QWidget *parent,
not_null<Window::SessionController*> controller);
2018-09-05 22:05:49 +03:00
[[nodiscard]] rpl::producer<QString> title() override;
rpl::producer<Type> sectionShowOther() override;
2018-09-05 22:05:49 +03:00
private:
2019-07-24 16:00:30 +02:00
void setupContent(not_null<Window::SessionController*> controller);
2018-09-05 22:05:49 +03:00
rpl::event_stream<Type> _showOther;
2018-09-05 22:05:49 +03:00
};
} // namespace Settings