My Project
Loading...
Searching...
No Matches
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
28namespace lomiri
29{
30
31namespace shell
32{
33
34namespace notifications
35{
36
41class LOMIRI_API Urgency : public QObject
42{
43 Q_OBJECT
44
45public:
51 enum class UrgencyEnum
52 {
53 Invalid = 0,
54 Low,
55 Normal,
56 Critical
57 };
58 Q_ENUM(UrgencyEnum)
59};
60
61
66class LOMIRI_API Type : public QObject
67{
68 Q_OBJECT
69
70public:
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
93class LOMIRI_API Hint : public QObject
94{
95 Q_OBJECT
96
97public:
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
114Q_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
Wraps NotificationInterface's hint flags.
Definition Enums.h:94
HintEnum
NotificationInterface's hint flags.
Definition Enums.h:104
Wraps NotificationInterface's type enumeration.
Definition Enums.h:67
TypeEnum
NotificationInterface's type enumeration.
Definition Enums.h:77
Wraps NotificationInterface's urgency enumeration.
Definition Enums.h:42
UrgencyEnum
NotificationInterface's urgency enumeration.
Definition Enums.h:52
Top-level namespace for all things Lomiri-related.
Definition Version.h:38