/* 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" namespace Ui { class VerticalLayout; } // namespace Ui namespace Window { class Controller; } // namespace Window namespace Settings { class Blocked : public Section { public: Blocked( QWidget *parent, not_null controller); void showFinished() override; [[nodiscard]] rpl::producer title() override; [[nodiscard]] QPointer createPinnedToTop( not_null parent) override; private: void setupContent(); void checkTotal(int total); void visibleTopBottomUpdated(int visibleTop, int visibleBottom) override; const not_null _controller; const not_null _container; base::unique_qptr _loading; rpl::variable _countBlocked; rpl::event_stream<> _showFinished; rpl::event_stream _emptinessChanges; }; } // namespace Settings