swift
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
swift::misc::audio::CNotificationSounds Struct Reference

Simplified enums to play sounds. More...

Public Types

enum  NotificationFlag {
  NoNotifications = 0 , NotificationLogin = 1 << 1 , NotificationLogoff = 1 << 2 , NotificationTextMessageFrequency = 1 << 12 ,
  NotificationTextMessagePrivate = 1 << 3 , NotificationTextMessageSupervisor = 1 << 4 , NotificationTextMessageUnicom = 1 << 13 , NotificationTextCallsignMentioned = 1 << 5 ,
  PTTClickKeyDown = 1 << 7 , PTTClickKeyUp = 1 << 8 , AFVClicked = 1 << 14 , AFVBlocked = 1 << 15
}
 Play notification.
 

Static Public Member Functions

static const QString & flagToString (NotificationFlag notification)
 As string.
 
static QString toString (Notification notification)
 As string.
 

Static Public Attributes

constexpr static Notification AllTextNotifications
 All text notification flags. More...
 
constexpr static Notification AllLoginNotifications = Notification(NotificationLogin | NotificationLogoff)
 All login notification flags.
 
constexpr static Notification AllPTTNotifications = Notification(PTTClickKeyUp | PTTClickKeyDown)
 All PTT notification flags.
 
constexpr static Notification AllAfv = Notification(AFVClicked | AFVBlocked)
 All AFV flags.
 
constexpr static Notification AllNotifications
 All notification flags. More...
 
constexpr static Notification DefaultNotifications
 Default notification flags. More...
 

Detailed Description

Simplified enums to play sounds.

Remarks
Currently located in project swift::misc (i.e. outside project swift::sound) as this allows to trigger sounds without using Multimedia libraries.

Definition at line 20 of file notificationsounds.h.

Member Data Documentation

◆ AllNotifications

constexpr static Notification swift::misc::audio::CNotificationSounds::AllNotifications
staticconstexpr
Initial value:
=
constexpr static Notification AllLoginNotifications
All login notification flags.
constexpr static Notification AllAfv
All AFV flags.
constexpr static Notification AllTextNotifications
All text notification flags.
constexpr static Notification AllPTTNotifications
All PTT notification flags.

All notification flags.

Definition at line 64 of file notificationsounds.h.

◆ AllTextNotifications

constexpr static Notification swift::misc::audio::CNotificationSounds::AllTextNotifications
staticconstexpr
Initial value:
= Notification(
NotificationTextMessageFrequency | NotificationTextMessagePrivate | NotificationTextCallsignMentioned |
NotificationTextMessageSupervisor | NotificationTextMessageUnicom)

All text notification flags.

Definition at line 50 of file notificationsounds.h.

◆ DefaultNotifications

constexpr static Notification swift::misc::audio::CNotificationSounds::DefaultNotifications
staticconstexpr
Initial value:
=
Notification(AllNotifications & ~(NotificationTextMessageFrequency | NotificationTextMessageUnicom))
constexpr static Notification AllNotifications
All notification flags.

Default notification flags.

Definition at line 68 of file notificationsounds.h.


The documentation for this struct was generated from the following files: