diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-12 10:36:30 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-12 10:36:30 +0000 |
commit | 62384056910fc8fef88e1d99c62b3fe7ac313ac2 (patch) | |
tree | 4872ca7d992bbda2974fad3ff2be1aabbd75b390 /plugins/Toaster/src/toast_event_handler.h | |
parent | dbc1d7539d11a0102b3b6b89f6c711a82b0a3fda (diff) |
Toaster: removed crutches, normal event handler
git-svn-id: http://svn.miranda-ng.org/main/trunk@15330 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Toaster/src/toast_event_handler.h')
-rw-r--r-- | plugins/Toaster/src/toast_event_handler.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/plugins/Toaster/src/toast_event_handler.h b/plugins/Toaster/src/toast_event_handler.h index a5a616d81d..097a3d53c4 100644 --- a/plugins/Toaster/src/toast_event_handler.h +++ b/plugins/Toaster/src/toast_event_handler.h @@ -5,12 +5,23 @@ 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;
+};
class ToastEventHandler : public Microsoft::WRL::Implements<DesktopToastActivatedEventHandler, DesktopToastDismissedEventHandler, DesktopToastFailedEventHandler>
{
public:
+ ToastHandlerData *_thd;
+
ToastEventHandler::ToastEventHandler();
- ToastEventHandler::ToastEventHandler(_In_ pEventHandler callback, _In_ void* arg = nullptr);
+ ToastEventHandler::ToastEventHandler(_In_ ToastHandlerData *pData);
~ToastEventHandler();
IFACEMETHODIMP_(ULONG) AddRef();
@@ -23,8 +34,7 @@ public: IFACEMETHODIMP Invoke(_In_ ABI::Windows::UI::Notifications::IToastNotification* /* sender */, _In_ ABI::Windows::UI::Notifications::IToastFailedEventArgs* /* e */);
private:
ULONG _ref;
- void* _arg;
- pEventHandler _callback;
+
};
#endif //_TOAST_EVENT_HANDLER_H_
\ No newline at end of file |