mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +08:00
Move grouped Notifications out of NotificationFlag enum
Those were convenience helpers that do not belong to the enum itself.
This commit is contained in:
committed by
Mat Sutcliffe
parent
d5b3a336dd
commit
db861569ef
@@ -48,15 +48,24 @@ namespace BlackMisc
|
|||||||
NotificationNoAudioTransmission = 1 << 8,
|
NotificationNoAudioTransmission = 1 << 8,
|
||||||
PTTClickKeyDown = 1 << 9,
|
PTTClickKeyDown = 1 << 9,
|
||||||
PTTClickKeyUp = 1 << 10,
|
PTTClickKeyUp = 1 << 10,
|
||||||
AllTextNotifications = NotificationTextMessagePrivate | NotificationTextCallsignMentioned | NotificationTextMessageSupervisor,
|
|
||||||
AllLoginNotifications = NotificationLogin | NotificationLogoff,
|
|
||||||
AllVoiceRoomNotifications = NotificationVoiceRoomJoined | NotificationVoiceRoomLeft | NotificationNoAudioTransmission,
|
|
||||||
AllNotifications = NotificationError | AllTextNotifications | AllLoginNotifications | AllVoiceRoomNotifications,
|
|
||||||
DefaultNotifications = NotificationError | AllTextNotifications | AllLoginNotifications | AllVoiceRoomNotifications,
|
|
||||||
All = AllNotifications | PTTClickKeyDown | PTTClickKeyUp
|
|
||||||
};
|
};
|
||||||
Q_DECLARE_FLAGS(Notification, NotificationFlag)
|
Q_DECLARE_FLAGS(Notification, NotificationFlag)
|
||||||
|
|
||||||
|
//! All text notification flags
|
||||||
|
constexpr static Notification AllTextNotifications = Notification(NotificationTextMessagePrivate | NotificationTextCallsignMentioned | NotificationTextMessageSupervisor);
|
||||||
|
|
||||||
|
//! All login notification flags
|
||||||
|
constexpr static Notification AllLoginNotifications = Notification(NotificationLogin | NotificationLogoff);
|
||||||
|
|
||||||
|
//! All voice room notification flags
|
||||||
|
constexpr static Notification AllVoiceRoomNotifications = Notification(NotificationVoiceRoomJoined | NotificationVoiceRoomLeft);
|
||||||
|
|
||||||
|
//! All notification flags
|
||||||
|
constexpr static Notification AllNotifications = Notification(NotificationError | AllTextNotifications | AllLoginNotifications | AllVoiceRoomNotifications);
|
||||||
|
|
||||||
|
//! Default notification flags
|
||||||
|
constexpr static Notification DefaultNotifications = Notification(AllNotifications);
|
||||||
|
|
||||||
//! As string
|
//! As string
|
||||||
static const QString &flagToString(NotificationFlag notification);
|
static const QString &flagToString(NotificationFlag notification);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user