diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-04 12:31:07 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-04 12:31:07 +0000 |
commit | 4dc918470c838072354fe22415669bd161fcdd13 (patch) | |
tree | d302c7d712386569ae800008a59e5400e6b2d3d9 /plugins/Toaster/src/toast_notification.h | |
parent | ffed67680e03ba7b8676ef9e51866c7ff47ae9a5 (diff) |
Toaster: more fixes, code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@16017 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Toaster/src/toast_notification.h')
-rw-r--r-- | plugins/Toaster/src/toast_notification.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/Toaster/src/toast_notification.h b/plugins/Toaster/src/toast_notification.h index 2320cbce99..812c361810 100644 --- a/plugins/Toaster/src/toast_notification.h +++ b/plugins/Toaster/src/toast_notification.h @@ -13,7 +13,6 @@ private: WNDPROC _pfnPopupProc;
void *_pvPopupData;
-
wchar_t* _text;
wchar_t* _caption;
wchar_t* _imagePath;
@@ -33,11 +32,7 @@ public: ToastNotification(_In_ wchar_t* text, _In_ wchar_t* caption = nullptr, _In_ wchar_t* imagePath = nullptr, MCONTACT hContact = 0, WNDPROC pWndProc = nullptr, void *pData = nullptr);
~ToastNotification();
- inline void Destroy()
- { mir_cslock lck(csNotifications); lstNotifications.remove(this);
- }
-
- HRESULT OnActivate(_In_ ABI::Windows::UI::Notifications::IToastNotification*, IInspectable*);
+ HRESULT OnActivate(_In_ ABI::Windows::UI::Notifications::IToastNotification*, _In_ IInspectable*);
HRESULT OnDismiss(_In_ ABI::Windows::UI::Notifications::IToastNotification*, _In_ ABI::Windows::UI::Notifications::IToastDismissedEventArgs*);
HRESULT OnFail(_In_ ABI::Windows::UI::Notifications::IToastNotification*, _In_ ABI::Windows::UI::Notifications::IToastFailedEventArgs*);
@@ -52,4 +47,5 @@ public: { return (_pfnPopupProc ? _pfnPopupProc((HWND)this, uMsg, 0, 0) : 0);
}
+ void Destroy();
};
|