on 22d7190 help sign in
103 lines 2.3 kB history raw
1/*
2 * Copyright (C) 2012 Canonical, Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Author: Nick Dedekind <nick.dedekind@canonical.com>
17 */
19#ifndef INDICATORS_H
20#define INDICATORS_H
22#include <QObject>
24class ActionState : public QObject
26 Q_OBJECT
27public:
28 Q_ENUMS(ActionStates)
29 enum ActionStates {
30 Label = 0x00,
31 IconSource = 0x01,
32 AccessableName = 0x02,
33 Visible = 0x03,
34 };
36 ActionState(QObject*parent=0):QObject(parent) {}
37};
39class NetworkActionState : public QObject
41 Q_OBJECT
42public:
43 Q_ENUMS(NetworkActionStates)
44 enum NetworkActionStates {
45 Connection = 0x01,
46 SignalStrength = 0x02,
47 };
49 NetworkActionState(QObject*parent=0):QObject(parent) {}
50};
52class NetworkConnection : public QObject
54 Q_OBJECT
55public:
56 Q_ENUMS(NetworkConnectionStates)
57 enum NetworkConnectionStates {
58 Initial = 0x00,
59 Activating = 0x01,
60 Activated = 0x02,
61 Deactivating = 0x03,
62 };
64 NetworkConnection(QObject*parent=0):QObject(parent) {}
65};
67class IndicatorsModelRole : public QObject
69 Q_OBJECT
70public:
71 Q_ENUMS(Roles)
72 enum Roles {
73 Identifier = 0,
74 Priority,
75 Title,
76 Description,
77 WidgetSource,
78 PageSource,
79 IndicatorProperties,
80 IsValid
81 };
83 IndicatorsModelRole(QObject*parent=0):QObject(parent) {}
84};
86class FlatMenuProxyModelRole : public QObject
88 Q_OBJECT
89public:
90 Q_ENUMS(Roles)
91 enum Roles {
92 Action = Qt::DisplayRole + 1,
93 Label,
94 Extra,
95 Depth,
96 hasSection,
97 hasSubMenu
98 };
100 FlatMenuProxyModelRole(QObject*parent=0):QObject(parent) {}
101};
103#endif // INDICATORS_H