summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src/toast_event_handler.h
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-09-15 12:28:41 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-09-15 12:28:41 +0000
commit7d17df97bb5dc0c604a8ed1722f8dba9ea8c56fd (patch)
tree907986661bd629f9e1fdc236e07e8912f4483471 /plugins/Toaster/src/toast_event_handler.h
parentb4e932fe7025e034972ae3adbb04c61ed78f0120 (diff)
Toaster: code optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@15358 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Toaster/src/toast_event_handler.h')
-rw-r--r--plugins/Toaster/src/toast_event_handler.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/plugins/Toaster/src/toast_event_handler.h b/plugins/Toaster/src/toast_event_handler.h
index 097a3d53c4..4405272f54 100644
--- a/plugins/Toaster/src/toast_event_handler.h
+++ b/plugins/Toaster/src/toast_event_handler.h
@@ -5,22 +5,13 @@ typedef ABI::Windows::Foundation::ITypedEventHandler<ABI::Windows::UI::Notificat
typedef ABI::Windows::Foundation::ITypedEventHandler<ABI::Windows::UI::Notifications::ToastNotification *, ABI::Windows::UI::Notifications::ToastDismissedEventArgs *> DesktopToastDismissedEventHandler;
typedef ABI::Windows::Foundation::ITypedEventHandler<ABI::Windows::UI::Notifications::ToastNotification *, ABI::Windows::UI::Notifications::ToastFailedEventArgs *> DesktopToastFailedEventHandler;
-struct ToastHandlerData : public MZeroedObject
-{
- MCONTACT hContact;
-
- WNDPROC pPopupProc;
- void *vPopupData;
-
- ToastNotification *tstNotification;
-};
+struct ToastHandlerData;
class ToastEventHandler : public Microsoft::WRL::Implements<DesktopToastActivatedEventHandler, DesktopToastDismissedEventHandler, DesktopToastFailedEventHandler>
{
public:
- ToastHandlerData *_thd;
+ std::unique_ptr<ToastHandlerData> _thd;
- ToastEventHandler::ToastEventHandler();
ToastEventHandler::ToastEventHandler(_In_ ToastHandlerData *pData);
~ToastEventHandler();