Skip to content

Commit 21a8b9f

Browse files
authored
Update README.md
1 parent 3dd4823 commit 21a8b9f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,21 @@ WinToast integrates all standar templates availables in the [ToastTemplateType e
2121

2222
### Usage
2323

24-
Import the header file wintoastlib.h to your project. Initialize the library with your application info:
24+
Import the header file wintoastlib.h to your project. For an easy usage, just use the available instance:
2525

2626
using namespace WinToastLib;
2727
....
2828
WinToast::instance()->setAppName(L"WinToastExample");
2929
WinToast::instance()->setAppUserModelId(
3030
WinToast::configureAUMI(L"mohabouje", L"wintoast", L"wintoastexample", L"20161006"));
31+
32+
Check if the WinToas is initialized with succes & is compatible with your current OS:
33+
3134
if (!WinToast::instance()->initialize()) {
3235
qDebug() << "Error, your system in not compatible!";
3336
}
3437

35-
You could customize your own handler, just create a subclass from `WinToastHandler`:
38+
Now, implement your own handler subclassing the interface `IWinToastHandler`:
3639

3740
class WinToastHandlerExample : public WinToastHandler {
3841
public:
@@ -43,7 +46,7 @@ You could customize your own handler, just create a subclass from `WinToastHandl
4346
void toastFailed() const;
4447
};
4548
46-
Now, every time you want to launch a new toast, just create a new template and configure it:
49+
Now, to notify any event just create a new template and launch it:
4750

4851
WinToastHandlerExample* handler = new WinToastHandlerExample;
4952
WinToastTemplate templ = WinToastTemplate(WinToastTemplate::ImageAndText03);

0 commit comments

Comments
 (0)