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"
|
2019-05-21 12:51:24 +00:00
|
|
|
#include "apiwrap.h"
|
|
|
|
|
|
|
|
class EditPrivacyController;
|
2019-09-18 11:19:05 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
2019-09-13 06:06:02 +00:00
|
|
|
class BoxContent;
|
2019-09-18 11:19:05 +00:00
|
|
|
} // namespace Ui
|
2018-09-05 19:05:49 +00:00
|
|
|
|
|
|
|
namespace Settings {
|
|
|
|
|
2019-05-20 18:40:53 +00:00
|
|
|
int ExceptionUsersCount(const std::vector<not_null<PeerData*>> &exceptions);
|
|
|
|
|
2019-07-24 14:00:30 +00:00
|
|
|
bool CheckEditCloudPassword(not_null<::Main::Session*> session);
|
2019-09-18 11:19:05 +00:00
|
|
|
object_ptr<Ui::BoxContent> EditCloudPasswordBox(
|
2019-07-24 11:45:24 +00:00
|
|
|
not_null<::Main::Session*> session);
|
2019-07-24 14:00:30 +00:00
|
|
|
void RemoveCloudPassword(not_null<::Main::Session*> session);
|
2019-09-18 11:19:05 +00:00
|
|
|
object_ptr<Ui::BoxContent> CloudPasswordAppOutdatedBox();
|
2019-06-14 12:01:35 +00:00
|
|
|
|
2019-05-21 12:51:24 +00:00
|
|
|
void AddPrivacyButton(
|
2019-07-24 14:00:30 +00:00
|
|
|
not_null<Window::SessionController*> controller,
|
2019-05-21 12:51:24 +00:00
|
|
|
not_null<Ui::VerticalLayout*> container,
|
2019-06-18 12:16:43 +00:00
|
|
|
rpl::producer<QString> label,
|
2019-05-21 12:51:24 +00:00
|
|
|
ApiWrap::Privacy::Key key,
|
2019-07-24 14:00:30 +00:00
|
|
|
Fn<std::unique_ptr<EditPrivacyController>()> controllerFactory);
|
2019-05-21 12:51:24 +00:00
|
|
|
|
2018-09-05 19:05:49 +00:00
|
|
|
class PrivacySecurity : public Section {
|
|
|
|
public:
|
2019-07-24 14:00:30 +00:00
|
|
|
PrivacySecurity(
|
|
|
|
QWidget *parent,
|
|
|
|
not_null<Window::SessionController*> controller);
|
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
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Settings
|