diff options
Diffstat (limited to 'plugins/Toaster/src/toast_event_handler.h')
-rw-r--r-- | plugins/Toaster/src/toast_event_handler.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/plugins/Toaster/src/toast_event_handler.h b/plugins/Toaster/src/toast_event_handler.h deleted file mode 100644 index 2626436540..0000000000 --- a/plugins/Toaster/src/toast_event_handler.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef _TOAST_EVENT_HANDLER_H_
-#define _TOAST_EVENT_HANDLER_H_
-
-typedef ABI::Windows::Foundation::ITypedEventHandler<ABI::Windows::UI::Notifications::ToastNotification *, ::IInspectable *> DesktopToastActivatedEventHandler;
-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;
-
-class ToastEventHandler : public Microsoft::WRL::Implements<DesktopToastActivatedEventHandler, DesktopToastDismissedEventHandler, DesktopToastFailedEventHandler>
-{
-public:
- explicit ToastEventHandler(_In_ ToastHandlerData*);
- ~ToastEventHandler();
-
- IFACEMETHODIMP_(ULONG) AddRef();
- IFACEMETHODIMP_(ULONG) Release();
-
- IFACEMETHODIMP QueryInterface(_In_ REFIID riid, _COM_Outptr_ void** ppv);
-
- IFACEMETHODIMP Invoke(_In_ ABI::Windows::UI::Notifications::IToastNotification*, _In_ IInspectable*);
- IFACEMETHODIMP Invoke(_In_ ABI::Windows::UI::Notifications::IToastNotification*, _In_ ABI::Windows::UI::Notifications::IToastDismissedEventArgs*);
- IFACEMETHODIMP Invoke(_In_ ABI::Windows::UI::Notifications::IToastNotification*, _In_ ABI::Windows::UI::Notifications::IToastFailedEventArgs*);
-
- void* GetPluginData();
- MCONTACT GetContact();
- void* GetToastNotification();
-
-private:
- ULONG _ref;
- std::unique_ptr<ToastHandlerData> _thd;
-
- void DestroyNotification();
- LRESULT CallPopupProc(UINT uMsg);
-};
-
-#endif //_TOAST_EVENT_HANDLER_H_
\ No newline at end of file |