libnick 2025.1.0
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
Nickvision::Notifications::ShellNotification Namespace Reference

Functions

void send (const ShellNotificationSentEventArgs &e, HWND hwnd)
 Sends a notification to the desktop.
 
void send (const ShellNotificationSentEventArgs &e, const std::string &appId, const std::string &openText)
 Sends a notification to the shell.
 
void send (const ShellNotificationSentEventArgs &e)
 Sends a notification to the shell.
 

Function Documentation

◆ send() [1/3]

void Nickvision::Notifications::ShellNotification::send ( const ShellNotificationSentEventArgs & e)

Sends a notification to the shell.

Parameters
eShellNotificationSentEventArgs

◆ send() [2/3]

void Nickvision::Notifications::ShellNotification::send ( const ShellNotificationSentEventArgs & e,
const std::string & appId,
const std::string & openText )

Sends a notification to the shell.

Uses Gio.Notification on GTK applications.

Uses FreeDesktop Notifications on non-GTK applications.

Supports the action "open" with action param being a path of a file or folder to open. The app must define an "app.open" action to handle this event. (GTK applications only)

Parameters
eShellNotificationSentEventArgs
appIdThe application's id
openTextLocalized text of "Open"

◆ send() [3/3]

void Nickvision::Notifications::ShellNotification::send ( const ShellNotificationSentEventArgs & e,
HWND hwnd )

Sends a notification to the desktop.

Supports the action "open" with action param being a path of a file or folder to open.

Parameters
eShellNotificationSentEventArgs
hwndThe handle to the main application window