/* 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; class GenericBox; } // namespace Ui namespace Settings { [[nodiscard]] Type PrivacySecurityId(); int ExceptionUsersCount(const std::vector> &exceptions); bool CheckEditCloudPassword(not_null<::Main::Session*> session); object_ptr EditCloudPasswordBox( not_null<::Main::Session*> session); object_ptr ClearPaymentInfoBox( not_null<::Main::Session*> session); void OpenFileConfirmationsBox(not_null box); void RemoveCloudPassword(not_null session); object_ptr CloudPasswordAppOutdatedBox(); not_null AddPrivacyButton( not_null controller, not_null container, rpl::producer label, IconDescriptor &&descriptor, Api::UserPrivacy::Key key, Fn()> controllerFactory, const style::SettingsButton *stOverride = nullptr); [[nodiscard]] rpl::producer PrivacyButtonLabel( not_null<::Main::Session*> session, Api::UserPrivacy::Key key); void AddPrivacyPremiumStar( not_null button, not_null<::Main::Session*> session, rpl::producer label, const QMargins &padding); void SetupArchiveAndMute( not_null controller, not_null container, HighlightRegistry *highlights = nullptr); } // namespace Settings