Unity Scopes API
|
Allows the results of a preview to be sent to the preview requester. More...
#include <unity/scopes/qt/QPreviewReply.h>
Public Member Functions | |
bool | register_layout (QColumnLayoutList const &layouts) |
Registers a list of column layouts for the current preview. More... | |
bool | push (QPreviewWidgetList const &widget_list) |
Sends widget definitions to the sender of the preview query. More... | |
bool | push (QString const &key, QVariant const &value) |
Sends data for a preview widget attribute. More... | |
Allows the results of a preview to be sent to the preview requester.
bool unity::scopes::qt::QPreviewReply::push | ( | QPreviewWidgetList const & | widget_list | ) |
Sends widget definitions to the sender of the preview query.
This method can be called mutiple times to send widgets in stages.
bool unity::scopes::qt::QPreviewReply::push | ( | QString const & | key, |
QVariant const & | value | ||
) |
Sends data for a preview widget attribute.
bool unity::scopes::qt::QPreviewReply::register_layout | ( | QColumnLayoutList const & | layouts | ) |
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. |