/* 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 InputField; class SearchFieldController; } // namespace Ui namespace Settings { class Experimental : public Section { public: Experimental( QWidget *parent, not_null controller); ~Experimental(); [[nodiscard]] rpl::producer title() override; void fillTopBarMenu(const Ui::Menu::MenuCallback &addAction) override; void setInnerFocus() override; void showFinished() override; [[nodiscard]] base::weak_qptr createPinnedToTop( not_null parent) override; private: void setupContent(); rpl::event_stream<> _reloadOptionsRequests; rpl::variable _query; std::unique_ptr _searchController; QPointer _searchField; std::vector>> _highlights; }; } // namespace Settings