/* 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 namespace Main { class Session; } // namespace Main namespace Settings { struct FaqEntry { QString section; QString title; QString url; }; class FaqSuggestions final { public: explicit FaqSuggestions(not_null session); ~FaqSuggestions(); void request(); [[nodiscard]] bool loaded() const; [[nodiscard]] rpl::producer loadedValue() const; [[nodiscard]] const std::vector &entries() const; private: void parse(const MTPDwebPage &page); const not_null _session; std::vector _entries; rpl::variable _loaded = false; mtpRequestId _requestId = 0; }; } // namespace Settings