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;
85 unity::scopes::Result
const& result,
86 unity::scopes::ActionMetadata
const& metadata,
89 bool event(QEvent* e)
override;
109 virtual void run(unity::scopes::PreviewReplyProxy
const& reply)
final;
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.
Definition: HttpAsyncReader.h:40
virtual void run(unity::scopes::PreviewReplyProxy const &reply) final
Called by scopes run time to start the query.
Abstract base class to represent a particular preview.
Definition: QPreviewQueryBaseAPI.h:72
Base class for a scope implementation.
Definition: QScopeBase.h:115