/* 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_session.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, IconDescriptor &&descriptor, Api::UserPrivacy::Key key, Fn()> controllerFactory, const style::SettingsButton *stOverride = nullptr); void SetupArchiveAndMute( not_null controller, not_null container); class PrivacySecurity : public Section { public: PrivacySecurity( QWidget *parent, not_null controller); [[nodiscard]] rpl::producer title() override; rpl::producer sectionShowOther() override; private: void setupContent(not_null controller); rpl::event_stream _showOther; }; } // namespace Settings