Unity Scopes API
|
Allows the results of a preview to be sent to the preview requester. More...
#include <unity/scopes/PreviewReply.h>
Public Member Functions | |
virtual bool | register_layout (ColumnLayoutList const &layouts)=0 |
Registers a list of column layouts for the current preview. More... | |
virtual bool | push (PreviewWidgetList const &widget_list)=0 |
Sends widget definitions to the sender of the preview query. More... | |
virtual bool | push (std::string const &key, Variant const &value)=0 |
Sends data for a preview widget attribute. More... | |
![]() | |
virtual void | finished ()=0 |
Informs the source of a query that the query results are complete. More... | |
virtual void | error (std::exception_ptr ex)=0 |
Informs the source of a query that the query was terminated due to an error. More... | |
virtual | ~Reply () |
Destroys a Reply. More... | |
![]() | |
virtual std::string | endpoint ()=0 |
Returns the endpoint this proxy connects to. More... | |
virtual std::string | identity ()=0 |
Returns the identity of the target object of this proxy. More... | |
virtual std::string | category ()=0 |
Returns the category of the target object of this proxy. More... | |
virtual int64_t | timeout ()=0 |
Returns the timeout in milliseconds if this proxy is a twoway proxy. More... | |
virtual std::string | to_string ()=0 |
converts a proxy into its string representation. More... | |
Allows the results of a preview to be sent to the preview requester.
|
pure virtual |
Sends widget definitions to the sender of the preview query.
This method can be called mutiple times to send widgets in stages.
|
pure virtual |
Sends data for a preview widget attribute.
|
pure virtual |
Registers a list of column layouts for the current preview.
Layouts must be registered before pushing a unity::scopes::PreviewWidgetList, and must be registered only once.
unity::LogicException | register_layout() is called more than once. |