21 #ifndef _ENABLE_QT_EXPERIMENTAL_
22 #error You should define _ENABLE_QT_EXPERIMENTAL_ in order to use this experimental header file.
25 #include <unity/util/DefinesPtrs.h>
26 #include <unity/util/NonCopyable.h>
27 #include <unity/scopes/SearchReply.h>
28 #include <unity/scopes/SearchReplyProxyFwd.h>
30 #include <unity/scopes/qt/QCategory.h>
31 #include <unity/scopes/qt/QDepartment.h>
33 #include <QtCore/QString>
45 class QSearchQueryBase;
46 class QCategorisedResult;
50 class QSearchReplyImpl;
129 QString
const& title,
154 virtual void error(std::exception_ptr ex);
159 std::unique_ptr<internal::QSearchReplyImpl> p;
A result, including the category it belongs to.
Definition: QCategorisedResult.h:47
Allows the results of a search query to be sent to the query source.
Definition: QSearchReply.h:56
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.
Definition: QSearchReply.cpp:40
A category renderer template in JSON format.
Definition: CategoryRenderer.h:83
virtual bool push(QCategorisedResult const &result)
Sends a single result to the source of a query.
Definition: QSearchReply.cpp:49
Top-level namespace for all things Unity-related.
Definition: Version.h:49
Abstract base class to represent a particular query.
Definition: QSearchQueryBaseAPI.h:68
Definition: ActionMetadata.h:31
virtual void register_departments(QDepartment::SCPtr const &parent)
Register departments for the current search reply and provide the current department.
Definition: QSearchReply.cpp:35
std::shared_ptr< SearchReply > SearchReplyProxy
Convenience type definition.
Definition: SearchReplyProxyFwd.h:34
virtual void error(std::exception_ptr ex)
Informs the source of a query that the query was terminated due to an error.
Definition: QSearchReply.cpp:54
virtual ~QSearchReply()
Destroys a QSearchReply.
Definition: QSearchReply.cpp:31