A utility class providing static methods to show common toast messages.
More...
#include <ToastFactory.h>
|
static void | showError (Component *parent, const wstring &errorMessage, const wstring &title=L"") |
| Shows an error message toast.
|
static void | showWarning (Component *parent, const wstring &warningMessage, const wstring &title=L"") |
| Shows a warning message toast.
|
static void | showInfo (Component *parent, const wstring &infoMessage, const wstring &title=L"") |
| Shows an informational message toast.
|
static void | showSuccess (Component *parent, const wstring &successMessage, const wstring &title=L"") |
| Shows a success message toast.
|
A utility class providing static methods to show common toast messages.
This factory class offers convenient static methods to display error, warning, info, and success messages.
◆ showError()
void ToastFactory::showError |
( |
Component * | parent, |
|
|
const wstring & | errorMessage, |
|
|
const wstring & | title = L"" ) |
|
static |
Shows an error message toast.
- Parameters
-
hParent | Handle to the parent window. |
errorMessage | The error message to display. |
title | Optional toast title. Defaults to an empty string. |
◆ showInfo()
void ToastFactory::showInfo |
( |
Component * | parent, |
|
|
const wstring & | infoMessage, |
|
|
const wstring & | title = L"" ) |
|
static |
Shows an informational message toast.
- Parameters
-
hParent | Handle to the parent window. |
infoMessage | The informational message to display. |
title | Optional toast title. Defaults to an empty string. |
◆ showSuccess()
void ToastFactory::showSuccess |
( |
Component * | parent, |
|
|
const wstring & | successMessage, |
|
|
const wstring & | title = L"" ) |
|
static |
Shows a success message toast.
- Parameters
-
hParent | Handle to the parent window. |
successMessage | The success message to display. |
title | Optional toast title. Defaults to an empty string. |
◆ showWarning()
void ToastFactory::showWarning |
( |
Component * | parent, |
|
|
const wstring & | warningMessage, |
|
|
const wstring & | title = L"" ) |
|
static |
Shows a warning message toast.
- Parameters
-
hParent | Handle to the parent window. |
warningMessage | The warning message to display. |
title | Optional toast title. Defaults to an empty string. |
The documentation for this class was generated from the following file: