Lomiri
Loading...
Searching...
No Matches
indicators.h
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 */
18
19#ifndef INDICATORS_H
20#define INDICATORS_H
21
22#include "lomiriindicatorsglobal.h"
23
24#include <QObject>
25
26class LOMIRIINDICATORS_EXPORT ActionState : public QObject
27{
28 Q_OBJECT
29public:
30 enum ActionStates {
31 Label = 0x00,
32 IconSource = 0x01,
33 AccessableName = 0x02,
34 Visible = 0x03,
35 };
36 Q_ENUM(ActionStates)
37
38 ActionState(QObject*parent=0):QObject(parent) {}
39};
40
41class LOMIRIINDICATORS_EXPORT NetworkActionState : public QObject
42{
43 Q_OBJECT
44public:
45 enum NetworkActionStates {
46 Connection = 0x01,
47 SignalStrength = 0x02,
48 };
49 Q_ENUM(NetworkActionStates)
50
51 NetworkActionState(QObject*parent=0):QObject(parent) {}
52};
53
54class LOMIRIINDICATORS_EXPORT NetworkConnection : public QObject
55{
56 Q_OBJECT
57public:
58 enum NetworkConnectionStates {
59 Initial = 0x00,
60 Activating = 0x01,
61 Activated = 0x02,
62 Deactivating = 0x03,
63 };
64 Q_ENUM(NetworkConnectionStates)
65
66 NetworkConnection(QObject*parent=0):QObject(parent) {}
67};
68
69class LOMIRIINDICATORS_EXPORT IndicatorsModelRole : public QObject
70{
71 Q_OBJECT
72public:
73 enum Roles {
74 Identifier = 0,
75 Position,
76 IndicatorProperties
77 };
78 Q_ENUM(Roles)
79
80 IndicatorsModelRole(QObject*parent=0):QObject(parent) {}
81};
82
83class LOMIRIINDICATORS_EXPORT FlatMenuProxyModelRole : public QObject
84{
85 Q_OBJECT
86public:
87 enum Roles {
88 Action = Qt::DisplayRole + 1,
89 Label,
90 Extra,
91 Depth,
92 hasSection,
93 hasSubMenu
94 };
95 Q_ENUM(Roles)
96
97 FlatMenuProxyModelRole(QObject*parent=0):QObject(parent) {}
98};
99
100#endif // INDICATORS_H