![]() |
Tempo
Tempo is an app that allows users to create and manage timers, stopwatches, and alarms.
|
A class to handle system notifications using PowerShell scripts. More...
#include <Notification.hpp>
Public Member Functions | |
| Notification (string title, string body) | |
| Constructs a Notification object and displays the notification. More... | |
| void | showNotification (const string &title, const string &body) |
| Displays a notification with the given title and body. More... | |
Static Public Member Functions | |
| static void | setupNotifications () |
| Setups up the environment or configurations needed for notifications. More... | |
A class to handle system notifications using PowerShell scripts.
A class to manage system notifications using PowerShell scripts.
Definition at line 12 of file Notification.hpp.
| Notification::Notification | ( | string | title, |
| string | body | ||
| ) |
Constructs a Notification object and displays the notification.
Constructor that creates a Notification object and shows the notification.
| title | The title of the notification. |
| body | The body message of the notification. |
Definition at line 26 of file Notification.cpp.
|
static |
Setups up the environment or configurations needed for notifications.
This static method can be used to initialize any resources required for notifications before creating individual notification instances.
| void Notification::showNotification | ( | const string & | title, |
| const string & | body | ||
| ) |
Displays a notification with the given title and body.
Displays a notification using PowerShell with the given title and body.
| title | The title of the notification. |
| body | The body message of the notification. |
This method constructs the path to the PowerShell script and an image file, then creates a hidden process to execute the PowerShell command that shows the notification.
| title | The title of the notification. |
| body | The body message of the notification. |
Definition at line 40 of file Notification.cpp.
1.8.13