libnick 2024.12.0
A cross-platform base for native Nickvision applications.
|
An event argument for when a shell notification is sent. More...
#include <shellnotificationsenteventargs.h>
Public Member Functions | |
ShellNotificationSentEventArgs (const std::string &title, const std::string &message, NotificationSeverity severity, const std::string &action="", const std::string &actionParam="") | |
Constructs a ShellNotificationSentEventArgs. | |
const std::string & | getTitle () const |
Gets the title of the notification. | |
Public Member Functions inherited from Nickvision::Notifications::NotificationSentEventArgs | |
NotificationSentEventArgs (const std::string &message, NotificationSeverity severity, const std::string &action="", const std::string &actionParam="") | |
Constructs a NotificationSentEventArgs. | |
const std::string & | getMessage () const |
Gets the message of the notification. | |
NotificationSeverity | getSeverity () const |
Gets the severity of the notification. | |
const std::string & | getAction () const |
Gets the optional action of the notification. | |
const std::string & | getActionParam () const |
Gets the parameter of the optional action. | |
Public Member Functions inherited from Nickvision::Events::EventArgs | |
EventArgs ()=default | |
Constructs an EventArgs. | |
Protected Attributes | |
std::string | m_title |
Protected Attributes inherited from Nickvision::Notifications::NotificationSentEventArgs | |
std::string | m_message |
NotificationSeverity | m_severity |
std::string | m_action |
std::string | m_actionParam |
An event argument for when a shell notification is sent.
Nickvision::Notifications::ShellNotificationSentEventArgs::ShellNotificationSentEventArgs | ( | const std::string & | title, |
const std::string & | message, | ||
NotificationSeverity | severity, | ||
const std::string & | action = "", | ||
const std::string & | actionParam = "" ) |
Constructs a ShellNotificationSentEventArgs.
title | The title of the notification |
message | The message of the notification |
severity | The severity of the notification |
action | An additional action for the notification |
actionParam | The parameter of the additional action |
const std::string & Nickvision::Notifications::ShellNotificationSentEventArgs::getTitle | ( | ) | const |
Gets the title of the notification.
|
protected |