My Project
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Properties Macros
unity::shell::scopes::ScopesInterface Class Referenceabstract

A list of scopes to display in the UI. More...

#include <unity/shell/scopes/ScopesInterface.h>

Inheritance diagram for unity::shell::scopes::ScopesInterface:
Collaboration diagram for unity::shell::scopes::ScopesInterface:

Public Types

enum  Roles { RoleScope, RoleId, RoleVisible, RoleTitle }
 Roles supported by the model.
 

Public Member Functions

virtual Q_INVOKABLE
unity::shell::scopes::ScopeInterface
getScope (int row) const =0
 Get ScopeInterface instance associated with a row. More...
 
virtual Q_INVOKABLE
unity::shell::scopes::ScopeInterface
getScope (QString const &scopeId) const =0
 Get ScopeInterface instance by scope id. More...
 

Properties

bool loaded
 Boolean indicating whether asynchronous populating of the model finished.
 

Detailed Description

A list of scopes to display in the UI.

This model exposes information about scopes that should be shown by the dash.

Member Function Documentation

virtual Q_INVOKABLE unity::shell::scopes::ScopeInterface* unity::shell::scopes::ScopesInterface::getScope ( int  row) const
pure virtual

Get ScopeInterface instance associated with a row.

Returns ScopeInterface instance associated with a row or a null variant when supplied with incorrect index.

virtual Q_INVOKABLE unity::shell::scopes::ScopeInterface* unity::shell::scopes::ScopesInterface::getScope ( QString const &  scopeId) const
pure virtual

Get ScopeInterface instance by scope id.

Returns ScopeInterface instance which with the supplied scope id or a null variant.


The documentation for this class was generated from the following file: