Tag Parser
6.2.2
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
The Notification class holds a notification message of a certain notification type. More...
#include <notification.h>
Public Member Functions | |
Notification (NotificationType type, const std::string &message, const std::string &context) | |
Constructs a new Notification with the specified type, message and context. More... | |
NotificationType | type () const |
Returns the notification type. More... | |
const char * | typeName () const |
Returns the notification type as C-style string. More... | |
const std::string & | message () const |
Returns the message. More... | |
const std::string & | context () const |
Returns the context, eg. More... | |
const ChronoUtilities::DateTime & | creationTime () const |
Returns the time when the notification originally was created. More... | |
Static Public Member Functions | |
static constexpr NotificationType | worstNotificationType () |
Returns the worst notification type. More... | |
static void | sortByTime (NotificationList ¬ifications) |
Sorts the specified notifications by time (ascending). More... | |
The Notification class holds a notification message of a certain notification type.
These notifications are generated when parsing or making data.
Definition at line 43 of file notification.h.
Media::Notification::Notification | ( | NotificationType | type, |
const std::string & | message, | ||
const std::string & | context | ||
) |
Constructs a new Notification with the specified type, message and context.
Definition at line 18 of file notification.cpp.
|
inline |
|
inline |
Returns the time when the notification originally was created.
Definition at line 90 of file notification.h.
|
inline |
Returns the message.
Definition at line 74 of file notification.h.
|
static |
Sorts the specified notifications by time (ascending).
Definition at line 46 of file notification.cpp.
|
inline |
Returns the notification type.
Definition at line 66 of file notification.h.
const char * Media::Notification::typeName | ( | ) | const |
Returns the notification type as C-style string.
Definition at line 28 of file notification.cpp.
|
inlinestatic |
Returns the worst notification type.
Definition at line 98 of file notification.h.