/* 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 "api/api_user_privacy.h" class EditPrivacyController; namespace Ui { class BoxContent; } // namespace Ui namespace Settings { int ExceptionUsersCount(const std::vector> &exceptions); bool CheckEditCloudPassword(not_null<::Main::Session*> session); object_ptr EditCloudPasswordBox( not_null<::Main::Session*> session); void RemoveCloudPassword(not_null session); object_ptr CloudPasswordAppOutdatedBox(); void AddPrivacyButton( not_null controller, not_null container, rpl::producer label, Api::UserPrivacy::Key key, Fn()> controllerFactory); class PrivacySecurity : public Section { public: PrivacySecurity( QWidget *parent, not_null controller); rpl::producer sectionShowOther() override; private: void setupContent(not_null controller); rpl::event_stream _showOther; }; } // namespace Settings