summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src/stdafx.h
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-31 09:33:13 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-31 09:33:13 +0000
commitc4e939d79b82b195604e48e8d1b794da4c42347f (patch)
tree7e733724ae420fab0d8bb485734f605b0f878456 /plugins/Toaster/src/stdafx.h
parent9331a9d035bb1b2f9e08ef9141acad1e180fb70b (diff)
Toaster: crash fixes, popup icons support
git-svn-id: http://svn.miranda-ng.org/main/trunk@15126 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Toaster/src/stdafx.h')
-rw-r--r--plugins/Toaster/src/stdafx.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/Toaster/src/stdafx.h b/plugins/Toaster/src/stdafx.h
index 3fce653263..d470f9f43d 100644
--- a/plugins/Toaster/src/stdafx.h
+++ b/plugins/Toaster/src/stdafx.h
@@ -38,6 +38,7 @@ DEFINE_PROPERTYKEY(PKEY_AppUserModel_ID, 0x9F4C2855, 0x9F79, 0x4B39, 0xA8, 0xD0,
extern HINSTANCE g_hInstance;
extern mir_cs csNotifications;
extern OBJLIST<ToastNotification> lstNotifications;
+extern wchar_t wszTempDir[MAX_PATH];
struct callbackArg
{
@@ -50,8 +51,14 @@ struct ToastData
MCONTACT hContact;
TCHAR *tszTitle;
TCHAR *tszText;
+ HICON hIcon;
- ToastData(MCONTACT _hContact, TCHAR *_tszTitle, TCHAR *_tszText) : hContact(_hContact), tszTitle(_tszTitle), tszText(_tszText) {}
+ ToastData(MCONTACT _hContact, TCHAR *_tszTitle, TCHAR *_tszText, HICON _hIcon = NULL) : hContact(_hContact), tszTitle(mir_tstrdup(_tszTitle)), tszText(mir_tstrdup(_tszText)), hIcon(_hIcon) {}
+ ~ToastData()
+ {
+ mir_free(tszTitle);
+ mir_free(tszText);
+ }
};
void InitServices();