17 #ifndef UNITY_SHELL_SCOPES_SCOPESINTERFACE_H
18 #define UNITY_SHELL_SCOPES_SCOPESINTERFACE_H
20 #include <unity/SymbolExport.h>
22 #include <QAbstractListModel>
47 Q_PROPERTY(
bool loaded READ loaded NOTIFY loadedChanged)
51 explicit
ScopesInterface(QObject* parent = 0) : QAbstractListModel(parent) { }
82 virtual bool loaded()
const = 0;
83 QHash<int, QByteArray> roleNames()
const override
85 QHash<int, QByteArray> roles;
86 roles[RoleScope] =
"scope";
88 roles[RoleVisible] =
"visible";
89 roles[RoleTitle] =
"title";
A list of scopes to display in the UI.
Definition: ScopesInterface.h:38
Object representing scope instance, which exposes model(s) with results.
Definition: ScopeInterface.h:40
Roles
Roles supported by the model.
Definition: ScopesInterface.h:58