Enums.h
/*
* Copyright 2013 Canonical Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Authors:
* Michał Sawicz <michal.sawicz@canonical.com>
*/
#ifndef LOMIRI_SHELL_NOTIFICATIONS_ENUMS_H
#define LOMIRI_SHELL_NOTIFICATIONS_ENUMS_H
#include <lomiri/SymbolExport.h>
#include <QtCore/QObject>
namespace lomiri
{
namespace shell
{
namespace notifications
{
class LOMIRI_API Urgency : public QObject
{
Q_OBJECT
public:
enum class UrgencyEnum
{
Invalid = 0,
Low,
Normal,
Critical
};
Q_ENUM(UrgencyEnum)
};
class LOMIRI_API Type : public QObject
{
Q_OBJECT
public:
enum class TypeEnum
{
Invalid = 0,
Confirmation,
Ephemeral,
Interactive,
SnapDecision,
Placeholder
};
Q_ENUM(TypeEnum)
};
class LOMIRI_API Hint : public QObject
{
Q_OBJECT
public:
enum HintEnum
{
Invalid = 1 << 0,
ButtonTint = 1 << 1,
IconOnly = 1 << 2
};
Q_FLAG(HintEnum)
Q_DECLARE_FLAGS(Hints, HintEnum)
};
Q_DECLARE_OPERATORS_FOR_FLAGS(Hint::Hints)
} // namespace notifications
} // namespace shell
} // namespace lomiri
#endif // LOMIRI_SHELL_NOTIFICATIONS_ENUMS_H
lomiri::shell::notifications::Hint
Wraps NotificationInterface's hint flags.
Definition: Enums.h:94
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::Type::TypeEnum
TypeEnum
NotificationInterface's type enumeration.
Definition: Enums.h:77
lomiri::shell::notifications::Urgency
Wraps NotificationInterface's urgency enumeration.
Definition: Enums.h:42
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