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>
28 #include <unity/scopes/SearchQueryBase.h>
29 #include <unity/scopes/qt/QSearchQueryBase.h>
31 #include <QtCore/QObject>
33 class QCoreApplication;
46 class QSearchQueryBaseAPIMock;
51 class QScopeBaseAPIImpl;
81 unity::scopes::CannedQuery
const& query,
82 unity::scopes::SearchMetadata
const& metadata,
85 bool event(QEvent* e)
override;
105 virtual void run(SearchReplyProxy
const& reply)
final;
120 std::shared_ptr<QCoreApplication> qtapp_;
121 std::unique_ptr<QSearchQueryBase> qtquery_;
126 friend unity::scopes::qt::tests::QSearchQueryBaseAPIMock;
127 friend internal::QScopeBaseAPIImpl;
130 void run_signal(QSearchReplyProxy
const&);
Definition: HttpAsyncReader.h:40
virtual void run(SearchReplyProxy const &reply) final
Called by scopes run time to start the query.
Abstract base class to represent a particular query.
Definition: QSearchQueryBaseAPI.h:68
Base class for a scope implementation.
Definition: QScopeBase.h:115
virtual void cancelled() final
Called by the scopes run time when the query originator cancels a query.