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> 27 #include <unity/scopes/ScopeProxyFwd.h> 29 #include <QtCore/QString> 30 #pragma GCC diagnostic push 31 #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 32 #include <QtCore/QVariant> 33 #pragma GCC diagnostic pop 47 class QCategorisedResult;
52 class QPreviewQueryBaseImpl;
98 void store(
QResult const& other,
bool intercept_activation =
false);
104 bool has_stored_result()
const;
116 void set_uri(QString
const& uri);
123 void set_title(QString
const& title);
129 void set_art(QString
const& image);
136 void set_dnd_uri(QString
const& dnd_uri);
150 void set_intercept_activation();
157 bool direct_activation()
const;
167 ScopeProxy target_scope_proxy()
const;
179 QVariant& operator[](QString
const& key);
190 QVariant
const& operator[](QString
const& key)
const;
199 QString uri()
const noexcept;
208 QString title()
const noexcept;
217 QString art()
const noexcept;
226 QString dnd_uri()
const noexcept;
233 bool contains(QString
const& key)
const;
242 QVariant
const& value(QString
const& key)
const;
248 QVariantMap serialize()
const;
252 explicit QResult(
const QVariantMap& variant_map);
253 explicit QResult(internal::QResultImpl* impl);
254 explicit QResult(unity::scopes::Result
const& result);
257 std::unique_ptr<internal::QResultImpl> p;
259 friend class internal::QResultImpl;
261 friend class internal::QPreviewQueryBaseImpl;
A result, including the category it belongs to.
Definition: QCategorisedResult.h:47
Definition: HttpAsyncReader.h:40
The attributes of a result returned by a Scope.
Definition: QResult.h:63
Abstract base class to represent a particular preview.
Definition: QPreviewQueryBaseAPI.h:72