43 static const auto values = MakeMap<QString, QList<ANFieldData>> ({
49 QObject::tr (
"File URL"),
50 QObject::tr (
"URL to the file being played."),
58 QObject::tr (
"Playback status"),
59 QObject::tr (
"The status of the currently playing media file."),
72 QObject::tr (
"Title metadata"),
73 QObject::tr (
"Title of the track being played."),
81 QObject::tr (
"Album metadata"),
82 QObject::tr (
"Album of the track being played."),
90 QObject::tr (
"Artist metadata"),
91 QObject::tr (
"Artist of the track being played."),
99 QObject::tr (
"Length metadata"),
100 QObject::tr (
"Length of the track being played."),
113 QObject::tr (
"Terminal is active"),
114 QObject::tr (
"The terminal tab that caused the notification is active."),
126 if (!type.isEmpty ())
127 return values.value (type);
130 for (
const auto& list : values)
const QString MediaArtist
The artist of the currently playing media (QString).
const QString MediaAlbum
The album of the currently playing media (QString).
const QString TypeMediaPlaybackStatus
A media file playback status has been changed.
const QString TypeTerminalBell
A bell has ringed in a terminal window.
const QString TypeTerminalActivity
Activity in terminal window.
const QString TerminalActive
Whether the terminal window is active (bool).
const QString CatTerminal
Category for terminal emulation events.
const QString MediaTitle
The title of the currently playing media (QString).
const QString MediaPlaybackStatus
Playback status of the URL (QString).
const QString TypeTerminalInactivity
Inactivity in terminal window.
const QString CatMediaPlayer
Category of media player-related events.
const QString MediaPlayerURL
The URL to the file being played.
const QString MediaLength
The length of the currently playing media (int).
QList< ANFieldData > GetStdANFields(const QString &type)