/* 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 "boxes/abstract_box.h" #include "history/admin_log/history_admin_log_section.h" namespace AdminLog { class FilterBox : public Ui::BoxContent { public: FilterBox( QWidget*, not_null channel, const std::vector> &admins, const FilterValue &filter, Fn saveCallback); protected: void prepare() override; private: void resizeToContent(); void refreshButtons(); not_null _channel; std::vector> _admins; FilterValue _initialFilter; Fn _saveCallback; class Inner; QPointer _inner; }; } // namespace AdminLog