tdesktop/Telegram/SourceFiles/settings/settings_advanced.h

42 lines
1011 B
C
Raw Normal View History

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
2018-09-05 19:05:49 +00:00
namespace Settings {
2020-06-10 14:52:44 +00:00
void SetupConnectionType(
not_null<Main::Account*> account,
not_null<Ui::VerticalLayout*> container);
2018-09-11 18:07:04 +00:00
bool HasUpdate();
void SetupUpdate(not_null<Ui::VerticalLayout*> container);
void SetupSystemIntegrationContent(not_null<Ui::VerticalLayout*> container);
void SetupAnimations(not_null<Ui::VerticalLayout*> container);
2018-09-11 18:07:04 +00:00
2018-09-20 16:47:02 +00:00
class Advanced : public Section {
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
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
rpl::event_stream<Type> _showOther;
2018-09-05 19:05:49 +00:00
};
} // namespace Settings