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/PreviewQueryBase.h>
29 #include <unity/scopes/PreviewReplyProxyFwd.h>
30 #include <unity/scopes/qt/QPreviewQueryBase.h>
32 #include <QtCore/QObject>
34 class QCoreApplication;
50 class QPreviewQueryBaseAPIMock;
55 class QScopeBaseAPIImpl;
89 bool event(QEvent* e)
override;
124 std::shared_ptr<QCoreApplication> qtapp_;
125 std::unique_ptr<QPreviewQueryBase> qtquery_;
131 friend internal::QScopeBaseAPIImpl;
132 friend unity::scopes::qt::tests::QPreviewQueryBaseAPIMock;
virtual void cancelled() final
Called by the scopes run time when the query originator cancels a query.
Result result() const
Get result for this preview request.
Definition: PreviewQueryBase.cpp:42
The attributes of a result returned by a Scope.
Definition: Result.h:50
Abstract base class to represent a particular preview.
Definition: PreviewQueryBase.h:57
Top-level namespace for all things Unity-related.
Definition: Version.h:49
virtual void run(unity::scopes::PreviewReplyProxy const &reply) final
Called by scopes run time to start the query.
Definition: ActionMetadata.h:31
std::shared_ptr< PreviewReply > PreviewReplyProxy
Convenience type definition.
Definition: PreviewReplyProxyFwd.h:34
Abstract base class to represent a particular preview.
Definition: QPreviewQueryBaseAPI.h:72
Base class for a scope implementation.
Definition: QScopeBase.h:115