21 #include <unity/util/DefinesPtrs.h>
22 #include <unity/util/NonCopyable.h>
23 #include <unity/scopes/SearchReply.h>
24 #include <unity/scopes/SearchReplyProxyFwd.h>
26 #include <unity/scopes/qt/QCategory.h>
27 #include <unity/scopes/qt/QDepartment.h>
29 #include <QtCore/QString>
41 class QSearchQueryBase;
42 class QCategorisedResult;
46 class QSearchReplyImpl;
125 QString
const& title,
127 unity::scopes::CategoryRenderer
const& renderer_template = unity::scopes::CategoryRenderer());
150 virtual void error(std::exception_ptr ex);
153 QSearchReply(unity::scopes::SearchReplyProxy& reply, QObject* parent = 0);
155 std::unique_ptr<internal::QSearchReplyImpl> p;
156 friend class internal::QSearchReplyImpl;
A result, including the category it belongs to.
Definition: QCategorisedResult.h:43
Allows the results of a search query to be sent to the query source.
Definition: QSearchReply.h:52
virtual bool push(QCategorisedResult const &result)
Sends a single result to the source of a query.
virtual ~QSearchReply()
Destroys a QSearchReply.
virtual void register_departments(QDepartment::SCPtr const &parent)
Register departments for the current search reply and provide the current department.
virtual void error(std::exception_ptr ex)
Informs the source of a query that the query was terminated due to an error.
Definition: HttpAsyncReader.h:39
virtual QCategory::SCPtr register_category(QString const &id, QString const &title, QString const &icon, unity::scopes::CategoryRenderer const &renderer_template=unity::scopes::CategoryRenderer())
Register new category and send it to the source of the query.
Abstract base class to represent a particular query.
Definition: QSearchQueryBaseAPI.h:59