6 #ifndef SWIFT_MISC_NOTIFICATIONSOUNDS_H
7 #define SWIFT_MISC_NOTIFICATIONSOUNDS_H
13 namespace swift::misc::audio
27 NotificationLogin = 1 << 1,
28 NotificationLogoff = 1 << 2,
29 NotificationTextMessageFrequency = 1 << 12,
30 NotificationTextMessagePrivate = 1 << 3,
31 NotificationTextMessageSupervisor = 1 << 4,
32 NotificationTextMessageUnicom = 1 << 13,
33 NotificationTextCallsignMentioned = 1 << 5,
37 PTTClickKeyDown = 1 << 7,
38 PTTClickKeyUp = 1 << 8,
47 Q_DECLARE_FLAGS(Notification, NotificationFlag)
50 constexpr static Notification AllTextNotifications = Notification(
51 NotificationTextMessageFrequency | NotificationTextMessagePrivate | NotificationTextCallsignMentioned |
52 NotificationTextMessageSupervisor | NotificationTextMessageUnicom);
55 constexpr static Notification AllLoginNotifications = Notification(NotificationLogin | NotificationLogoff);
58 constexpr static Notification AllPTTNotifications = Notification(PTTClickKeyUp | PTTClickKeyDown);
61 constexpr static Notification AllAfv = Notification(AFVClicked | AFVBlocked);
64 constexpr static Notification AllNotifications =
65 Notification(AllTextNotifications | AllLoginNotifications | AllPTTNotifications | AllAfv);
68 constexpr static Notification DefaultNotifications =
69 Notification(AllNotifications & ~(NotificationTextMessageFrequency | NotificationTextMessageUnicom));
75 static QString toString(Notification notification);
Simplified enums to play sounds.
NotificationFlag
Play notification.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.