swift
Loading...
Searching...
No Matches
swift::misc::audio::CNotificationSounds Struct Reference

Simplified enums to play sounds. More...

#include <notificationsounds.h>

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. More...

Static Public Member Functions

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

Static Public Attributes

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

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 Enumeration Documentation

◆ NotificationFlag

Play notification.

Definition at line 23 of file notificationsounds.h.

Member Function Documentation

◆ flagToString()

const QString & swift::misc::audio::CNotificationSounds::flagToString ( CNotificationSounds::NotificationFlag notification)
static

As string.

Definition at line 12 of file notificationsounds.cpp.

◆ toString()

QString swift::misc::audio::CNotificationSounds::toString ( Notification notification)
static

As string.

Definition at line 46 of file notificationsounds.cpp.

Member Data Documentation

◆ AllAfv

Notification swift::misc::audio::CNotificationSounds::AllAfv = Notification(AFVClicked | AFVBlocked)
staticconstexpr

All AFV flags.

Definition at line 61 of file notificationsounds.h.

◆ AllLoginNotifications

Notification swift::misc::audio::CNotificationSounds::AllLoginNotifications = Notification(NotificationLogin | NotificationLogoff)
staticconstexpr

All login notification flags.

Definition at line 55 of file notificationsounds.h.

◆ AllNotifications

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

All notification flags.

Definition at line 64 of file notificationsounds.h.

◆ AllPTTNotifications

Notification swift::misc::audio::CNotificationSounds::AllPTTNotifications = Notification(PTTClickKeyUp | PTTClickKeyDown)
staticconstexpr

All PTT notification flags.

Definition at line 58 of file notificationsounds.h.

◆ AllTextNotifications

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

Notification swift::misc::audio::CNotificationSounds::DefaultNotifications
staticconstexpr
Initial value:
=
Notification(AllNotifications & ~(NotificationTextMessageFrequency | NotificationTextMessageUnicom))
static constexpr 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: