tdesktop/Telegram/SourceFiles/settings/settings_advanced.h

36 lines
877 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"
namespace Settings {
2018-09-11 18:07:04 +00:00
bool HasConnectionType();
void SetupConnectionType(not_null<Ui::VerticalLayout*> container);
bool HasUpdate();
void SetupUpdate(not_null<Ui::VerticalLayout*> container);
bool HasTray();
void SetupTray(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:
2018-09-20 16:47:02 +00:00
explicit Advanced(QWidget *parent, UserData *self = nullptr);
2018-09-05 19:05:49 +00:00
rpl::producer<Type> sectionShowOther() override;
2018-09-05 19:05:49 +00:00
private:
void setupContent();
rpl::event_stream<Type> _showOther;
2018-09-05 19:05:49 +00:00
};
} // namespace Settings