tdesktop/Telegram/SourceFiles/settings/settings_privacy_security.h
John Preston 8660f976a9 Add phone number privacy.
Also move calls peer-to-peer privacy inside calls privacy.
2019-05-27 15:09:15 +02:00

36 lines
813 B
C++

/*
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"
#include "apiwrap.h"
class EditPrivacyController;
namespace Settings {
int ExceptionUsersCount(const std::vector<not_null<PeerData*>> &exceptions);
void AddPrivacyButton(
not_null<Ui::VerticalLayout*> container,
LangKey label,
ApiWrap::Privacy::Key key,
Fn<std::unique_ptr<EditPrivacyController>()> controller);
class PrivacySecurity : public Section {
public:
PrivacySecurity(QWidget *parent, not_null<UserData*> self);
private:
void setupContent();
not_null<UserData*> _self;
};
} // namespace Settings