My Project
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 LOMIRI_SHELL_NOTIFICATIONS_ENUMS_H
22
#define LOMIRI_SHELL_NOTIFICATIONS_ENUMS_H
23
24
#include <lomiri/SymbolExport.h>
25
26
#include <QtCore/QObject>
27
28
namespace
lomiri
29
{
30
31
namespace
shell
32
{
33
34
namespace
notifications
35
{
36
41
class
LOMIRI_API
Urgency
:
public
QObject
42
{
43
Q_OBJECT
44
45
public
:
51
enum class
UrgencyEnum
52
{
53
Invalid = 0,
54
Low,
55
Normal,
56
Critical
57
};
58
Q_ENUM(UrgencyEnum)
59
};
60
61
66
class
LOMIRI_API
Type
:
public
QObject
67
{
68
Q_OBJECT
69
70
public
:
76
enum class
TypeEnum
77
{
78
Invalid = 0,
79
Confirmation,
80
Ephemeral,
81
Interactive,
82
SnapDecision,
83
Placeholder
84
};
85
Q_ENUM(TypeEnum)
86
};
87
88
93
class
LOMIRI_API
Hint
:
public
QObject
94
{
95
Q_OBJECT
96
97
public
:
103
enum
HintEnum
104
{
105
Invalid = 1 << 0,
106
ButtonTint = 1 << 1,
107
IconOnly = 1 << 2
108
};
109
Q_FLAG(HintEnum)
110
111
Q_DECLARE_FLAGS(Hints, HintEnum)
112
};
113
114
Q_DECLARE_OPERATORS_FOR_FLAGS(Hint::Hints)
115
116
}
// namespace notifications
117
118
}
// namespace shell
119
120
}
// namespace lomiri
121
122
#endif // LOMIRI_SHELL_NOTIFICATIONS_ENUMS_H
lomiri::shell::notifications::Hint::HintEnum
HintEnum
NotificationInterface's hint flags.
Definition:
Enums.h:104
lomiri::shell::notifications::Type
Wraps NotificationInterface's type enumeration.
Definition:
Enums.h:67
lomiri::shell::notifications::Urgency
Wraps NotificationInterface's urgency enumeration.
Definition:
Enums.h:42
lomiri::shell::notifications::Type::TypeEnum
TypeEnum
NotificationInterface's type enumeration.
Definition:
Enums.h:77
lomiri::shell::notifications::Hint
Wraps NotificationInterface's hint flags.
Definition:
Enums.h:94
lomiri::shell::notifications::Urgency::UrgencyEnum
UrgencyEnum
NotificationInterface's urgency enumeration.
Definition:
Enums.h:52
lomiri
Top-level namespace for all things Lomiri-related.
Definition:
Version.h:38
include
lomiri
shell
notifications
Enums.h
Generated on Sun Sep 27 2020 18:32:56 for My Project by
1.8.18