21 #include <unity/util/DefinesPtrs.h>
23 #include <unity/scopes/ScopeProxyFwd.h>
25 #include <QtCore/QString>
26 #include <QtCore/QVariant>
40 class QCategorisedResult;
45 class QPreviewQueryBaseImpl;
92 void store(
QResult const& other,
bool intercept_activation =
false);
123 void set_art(QString
const& image);
184 QVariant
const&
operator[](QString
const& key)
const;
193 QString
uri()
const noexcept;
202 QString
title()
const noexcept;
211 QString
art()
const noexcept;
220 QString
dnd_uri()
const noexcept;
227 bool contains(QString
const& key)
const;
236 QVariant
const&
value(QString
const& key)
const;
246 explicit QResult(
const QVariantMap& variant_map);
247 explicit QResult(internal::QResultImpl* impl);
251 std::unique_ptr<internal::QResultImpl> p;
253 friend class internal::QResultImpl;
255 friend class internal::QPreviewQueryBaseImpl;
A result, including the category it belongs to.
Definition: QCategorisedResult.h:43
std::shared_ptr< Scope > ScopeProxy
Convenience type definition.
Definition: ScopeProxyFwd.h:34
bool direct_activation() const
Check if this result should be activated directly by the shell because the scope doesn't handle activ...
void set_title(QString const &title)
Set the "title" attribute of this result.
Definition: HttpAsyncReader.h:45
void set_art(QString const &image)
Set the "art" attribute of this result.
bool contains(QString const &key) const
Check if this Result has an attribute.
ScopeProxy target_scope_proxy() const
Get the proxy of a scope that handles activation and preview of this result.
The attributes of a result returned by a Scope.
Definition: Result.h:50
void set_uri(QString const &uri)
Set the "uri" attribute of this result.
QString dnd_uri() const noexcept
Get the "dnd_uri" property of this Result.
QVariant & operator[](QString const &key)
Returns reference of a Result attribute.
QVariant const & value(QString const &key) const
Get the value of an attribute.
QString art() const noexcept
Get the "art" property of this Result.
bool has_stored_result() const
Check if this Result instance has a stored result.
Top-level namespace for all things Unity-related.
Definition: Version.h:49
QResult retrieve() const
Get a stored result.
QString title() const noexcept
Get the "title" property of this Result.
void set_intercept_activation()
Indicates to the receiver that this scope should intercept activation requests for this result...
The attributes of a result returned by a Scope.
Definition: QResult.h:56
Definition: ActionMetadata.h:31
void set_dnd_uri(QString const &dnd_uri)
Set the "dnd_uri" attribute of this result.
void store(QResult const &other, bool intercept_activation=false)
Stores a Result inside this Result instance.
Abstract base class to represent a particular preview.
Definition: QPreviewQueryBaseAPI.h:63
QString uri() const noexcept
Get the "uri" property of this Result.
QVariantMap serialize() const
Returns a dictionary of all attributes of this Result instance.