libnick 2024.12.0
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
notificationsenteventargs.h
Go to the documentation of this file.
1
23#ifndef NOTIFICATIONSENTEVENTARGS_H
24#define NOTIFICATIONSENTEVENTARGS_H
25
26#include <string>
28#include "events/eventargs.h"
29
31{
36 {
37 public:
45 NotificationSentEventArgs(const std::string& message, NotificationSeverity severity, const std::string& action = "", const std::string& actionParam = "");
50 const std::string& getMessage() const;
60 const std::string& getAction() const;
65 const std::string& getActionParam() const;
66
67 protected:
68 std::string m_message;
70 std::string m_action;
71 std::string m_actionParam;
72 };
73}
74
75#endif //NOTIFICATIONSENTEVENTARGS_H
A base class for event arguments.
Definition eventargs.h:32
An event argument for when a notification is sent.
Definition notificationsenteventargs.h:36
std::string m_message
Definition notificationsenteventargs.h:68
const std::string & getMessage() const
Gets the message of the notification.
NotificationSeverity m_severity
Definition notificationsenteventargs.h:69
NotificationSeverity getSeverity() const
Gets the severity of the notification.
const std::string & getActionParam() const
Gets the parameter of the optional action.
NotificationSentEventArgs(const std::string &message, NotificationSeverity severity, const std::string &action="", const std::string &actionParam="")
Constructs a NotificationSentEventArgs.
std::string m_actionParam
Definition notificationsenteventargs.h:71
const std::string & getAction() const
Gets the optional action of the notification.
std::string m_action
Definition notificationsenteventargs.h:70
Definition notificationsenteventargs.h:31
NotificationSeverity
Severities of a notification.
Definition notificationseverity.h:32