My Project
|
Object representing scope instance, which exposes model(s) with results. More...
#include <unity/shell/scopes/ScopeInterface.h>
Public Types | |
enum | Status { Okay, NoInternet, NoLocationData, Unknown } |
Status info code following the last operation. | |
Signals | |
void | showDash () |
Signal requesting to show the dash. More... | |
void | hideDash () |
Signal requesting to hide the dash. More... | |
void | gotoUri (QString const &uri) |
Signal requesting to open a uri. More... | |
void | previewRequested (QVariant const &result) |
Signal requesting to preview a result. More... | |
void | gotoScope (QString const &scopeId) |
Signal requesting to change the currently focused scope. | |
void | openScope (unity::shell::scopes::ScopeInterface *scope) |
Signal requesting to show a temporary scope. | |
Public Member Functions | |
virtual Q_INVOKABLE void | activate (QVariant const &result)=0 |
Method used to activate a result. | |
virtual Q_INVOKABLE unity::shell::scopes::PreviewStackInterface * | preview (QVariant const &result)=0 |
Method used to preview a result. More... | |
virtual Q_INVOKABLE void | cancelActivation ()=0 |
Cancels the current activation. | |
virtual Q_INVOKABLE void | closeScope (unity::shell::scopes::ScopeInterface *scope)=0 |
Closes the temporary scope which got opened when openScope was emitted. | |
virtual Q_INVOKABLE unity::shell::scopes::NavigationInterface * | getNavigation (QString const &navigationId)=0 |
Get a NavigationInterface instance for the passed navigationId. | |
virtual Q_INVOKABLE unity::shell::scopes::NavigationInterface * | getAltNavigation (QString const &altNavigationId)=0 |
Get a NavigationInterface instance for the passed altNavigationId. | |
virtual Q_INVOKABLE void | setNavigationState (QString const &navId, bool altNavigation)=0 |
Request change to the current navigation or altNavigation id. | |
virtual Q_INVOKABLE void | performQuery (QString const &cannedQuery)=0 |
Execute canned query. | |
virtual Q_INVOKABLE void | refresh ()=0 |
Force refresh of the scope contents. | |
Object representing scope instance, which exposes model(s) with results.
|
signal |
Signal requesting to open a uri.
This signal is usually emitted after activating a result.
|
signal |
Signal requesting to hide the dash.
This signal is usually emitted after activating a result.
|
pure virtual |
Method used to preview a result.
Returns a new PreviewStackInterface instance. It's caller's responsibility to free it.
|
signal |
Signal requesting to preview a result.
This signal is usually emitted after activating a result.
|
signal |
Signal requesting to show the dash.
This signal is usually emitted after activating a result.