libnick 2024.9.2
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
Nickvision::Notifications::ShellNotificationSentEventArgs Class Reference

An event argument for when a shell notification is sent. More...

#include <shellnotificationsenteventargs.h>

Inheritance diagram for Nickvision::Notifications::ShellNotificationSentEventArgs:
Nickvision::Notifications::NotificationSentEventArgs Nickvision::Events::EventArgs

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
 

Detailed Description

An event argument for when a shell notification is sent.

Constructor & Destructor Documentation

◆ ShellNotificationSentEventArgs()

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.

Parameters
titleThe title of the notification
messageThe message of the notification
severityThe severity of the notification
actionAn additional action for the notification
actionParamThe parameter of the additional action

Member Function Documentation

◆ getTitle()

const std::string & Nickvision::Notifications::ShellNotificationSentEventArgs::getTitle ( ) const

Gets the title of the notification.

Returns
The title of the notification

Member Data Documentation

◆ m_title

std::string Nickvision::Notifications::ShellNotificationSentEventArgs::m_title
protected

The documentation for this class was generated from the following file: