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;
85 bool event(QEvent* e)
override;
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&);
Top-level namespace for all things Unity-related.
Definition: Version.h:49
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
Definition: ActionMetadata.h:31
Parameters of a search query.
Definition: CannedQuery.h:49
Abstract base class to represent a particular query.
Definition: SearchQueryBase.h:66
Base class for a scope implementation.
Definition: QScopeBase.h:115
std::shared_ptr< SearchReply > SearchReplyProxy
Convenience type definition.
Definition: SearchReplyProxyFwd.h:34
virtual void cancelled() final
Called by the scopes run time when the query originator cancels a query.
CannedQuery query() const
Get a canned query for this search request.