|
Unity Scopes API
|
A simple class implementation of unity::scopes::Result that provides a default constructor. More...
#include <unity/scopes/testing/Result.h>

Public Member Functions | |
| Result () | |
| Default constructor, creates Result instance with no attributes. | |
Public Member Functions inherited from unity::scopes::Result | |
| virtual | ~Result () |
| void | store (Result const &other, bool intercept_activation=false) |
| Stores a Result inside this Result instance. More... | |
| bool | has_stored_result () const |
| Check if this Result instance has a stored result. More... | |
| Result | retrieve () const |
| Get a stored result. More... | |
| void | set_uri (std::string const &uri) |
| Set the "uri" attribute of this result. | |
| void | set_title (std::string const &title) |
| Set the "title" attribute of this result. More... | |
| void | set_art (std::string const &image) |
| Set the "art" attribute of this result. More... | |
| void | set_dnd_uri (std::string const &dnd_uri) |
| Set the "dnd_uri" attribute of this result. More... | |
| void | set_intercept_activation () |
| Indicates to the receiver that this scope should intercept activation requests for this result. More... | |
| bool | direct_activation () const |
| Check if this result should be activated directly by the shell because the scope doesn't handle activation of this result. More... | |
| ScopeProxy | target_scope_proxy () const |
| Get the proxy of a scope that handles activation and preview of this result. More... | |
| Variant & | operator[] (std::string const &key) |
| Returns reference of a Result attribute. More... | |
| Variant const & | operator[] (std::string const &key) const |
| Returns a const reference to a Result attribute. More... | |
| std::string | uri () const noexcept |
| Get the "uri" property of this Result. More... | |
| std::string | title () const noexcept |
| Get the "title" property of this Result. More... | |
| std::string | art () const noexcept |
| Get the "art" property of this Result. More... | |
| std::string | dnd_uri () const noexcept |
| Get the "dnd_uri" property of this Result. More... | |
| bool | contains (std::string const &key) const |
| Check if this Result has an attribute. More... | |
| Variant const & | value (std::string const &key) const |
| Get the value of an attribute. More... | |
| VariantMap | serialize () const |
| Returns a dictionary of all attributes of this Result instance. More... | |
| Result (Result const &other) | |
| Result (Result &&) | |
| Result & | operator= (Result const &other) |
| Result & | operator= (Result &&) |
A simple class implementation of unity::scopes::Result that provides a default constructor.
This class makes it possible to create dummy results with no attributes, for testing purposes.