21 #include <unity/scopes/Variant.h> 22 #include <unity/util/DefinesPtrs.h> 23 #include <unity/scopes/ScopeProxyFwd.h> 33 class CategorisedResult;
54 UNITY_DEFINES_PTRS(
Result);
84 void store(
Result const& other,
bool intercept_activation =
false);
90 bool has_stored_result()
const;
102 void set_uri(std::string
const& uri);
109 void set_title(std::string
const& title);
115 void set_art(std::string
const& image);
122 void set_dnd_uri(std::string
const& dnd_uri);
136 void set_intercept_activation();
143 bool direct_activation()
const;
165 Variant& operator[](std::string
const& key);
176 Variant const& operator[](std::string
const& key)
const;
184 std::string uri()
const noexcept;
192 std::string title()
const noexcept;
200 std::string art()
const noexcept;
208 std::string dnd_uri()
const noexcept;
215 bool contains(std::string
const& key)
const;
229 Variant const& value(std::string
const& key)
const;
241 bool is_account_login_result()
const;
247 bool operator==(
Result const& other)
const;
252 explicit Result(internal::ResultImpl* impl);
255 std::unique_ptr<internal::ResultImpl> p;
257 friend class internal::ResultImpl;
258 friend class internal::ScopeImpl;
std::shared_ptr< Scope > ScopeProxy
Convenience type definition.
Definition: ScopeProxyFwd.h:34
Simple variant class that can hold an integer, boolean, string, double, dictionary, array or null value.
Definition: Variant.h:57
The attributes of a result returned by a Scope.
Definition: Result.h:50
Top-level namespace for all things Unity-related.
Definition: Version.h:49
std::map< std::string, Variant > VariantMap
A dictionary of (string, Variant) pairs.
Definition: Variant.h:38
Definition: ActionMetadata.h:31
A result, including the category it belongs to.
Definition: CategorisedResult.h:41