My Project
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Typedefs
Enumerations
Enumerator
Properties
Macros
Enums.h
1
/*
2
* Copyright 2013 Canonical Ltd.
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
12
*
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
* Authors:
17
* MichaĆ Sawicz <michal.sawicz@canonical.com>
18
*/
19
20
21
#ifndef UNITY_SHELL_NOTIFICATIONS_ENUMS_H
22
#define UNITY_SHELL_NOTIFICATIONS_ENUMS_H
23
24
#include <unity/SymbolExport.h>
25
26
#include <QtCore/QObject>
27
28
namespace
unity
29
{
30
31
namespace
shell
32
{
33
34
namespace
notifications
35
{
36
41
class
UNITY_API
Urgency
:
public
QObject
42
{
43
Q_OBJECT
44
45
Q_ENUMS(
UrgencyEnum
)
46
47
public
:
53
enum class
UrgencyEnum
54
{
55
Invalid = 0,
56
Low,
57
Normal,
58
Critical
59
};
60
};
61
62
67
class
UNITY_API
Type
:
public
QObject
68
{
69
Q_OBJECT
70
71
Q_ENUMS(
TypeEnum
)
72
73
public
:
79
enum class
TypeEnum
80
{
81
Invalid = 0,
82
Confirmation,
83
Ephemeral,
84
Interactive,
85
SnapDecision,
86
Placeholder
87
};
88
};
89
90
95
class
UNITY_API
Hint
:
public
QObject
96
{
97
Q_OBJECT
98
99
Q_FLAGS(
HintEnum
)
100
101
public
:
107
enum
HintEnum
108
{
109
Invalid = 1 << 0,
110
ButtonTint = 1 << 1,
111
IconOnly = 1 << 2
112
};
113
114
Q_DECLARE_FLAGS(Hints, HintEnum)
115
};
116
117
Q_DECLARE_OPERATORS_FOR_FLAGS(Hint::Hints)
118
119
}
// namespace notifications
120
121
}
// namespace shell
122
123
}
// namespace unity
124
125
#endif // UNITY_SHELL_NOTIFICATIONS_ENUMS_H
include
unity
shell
notifications
Enums.h
Generated on Fri Sep 27 2013 10:38:24 for My Project by
1.8.4