17#ifndef UNITY_SHELL_SCOPES_NAVIGATIONINTERFACE_H
18#define UNITY_SHELL_SCOPES_NAVIGATIONINTERFACE_H
20#include <unity/SymbolExport.h>
22#include <QAbstractListModel>
102 virtual QString navigationId()
const = 0;
103 virtual QString label()
const = 0;
104 virtual QString allLabel()
const = 0;
105 virtual QString parentNavigationId()
const = 0;
106 virtual QString parentLabel()
const = 0;
107 virtual bool loaded()
const = 0;
108 virtual bool isRoot()
const = 0;
109 virtual bool hidden()
const = 0;
110 virtual int count()
const = 0;
111 QHash<int, QByteArray> roleNames()
const override
113 QHash<int, QByteArray> roles;
114 roles[RoleNavigationId] =
"navigationId";
115 roles[RoleLabel] =
"label";
116 roles[RoleAllLabel] =
"allLabel";
117 roles[RoleHasChildren] =
"hasChildren";
118 roles[RoleIsActive] =
"isActive";
125 void navigationIdChanged();
127 void allLabelChanged();
128 void parentNavigationIdChanged();
129 void parentLabelChanged();
130 void loadedChanged();
131 void isRootChanged();
132 void hiddenChanged();
Object representing department instance, which exposes model(s) with results.
Definition NavigationInterface.h:35
QString parentNavigationId
Parent Id of the navigation.
Definition NavigationInterface.h:56
bool loaded
Is the model of the navigation completely loaded?
Definition NavigationInterface.h:66
QString allLabel
Label for "All Button" of the navigation.
Definition NavigationInterface.h:51
int count
Number of items of the navigation.
Definition NavigationInterface.h:81
QString navigationId
Id of the navigation.
Definition NavigationInterface.h:41
QString label
Label of the navigation.
Definition NavigationInterface.h:46
bool hidden
Is this a hidden navigation?
Definition NavigationInterface.h:76
Roles
The roles supported by this model.
Definition NavigationInterface.h:92
bool isRoot
Is this deparment the root navigation?
Definition NavigationInterface.h:71
QString parentLabel
Parent label of the navigation.
Definition NavigationInterface.h:61
Top-level namespace for all things Unity-related.
Definition Version.h:38