diff options
author | George Hazan <ghazan@miranda.im> | 2022-06-29 13:53:31 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-06-29 13:53:31 +0300 |
commit | 3bace5a63029cc6210256523a0f0a658e34bc4b7 (patch) | |
tree | 6a18574e4b8a94fcf060840572398971e37886b4 /plugins/Toaster/src/toast_notification.h | |
parent | 0bab63af012c9d2da217d13b7a24242710f10f62 (diff) |
Toaster: code cleaning
Diffstat (limited to 'plugins/Toaster/src/toast_notification.h')
-rw-r--r-- | plugins/Toaster/src/toast_notification.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/Toaster/src/toast_notification.h b/plugins/Toaster/src/toast_notification.h index 55add011e3..2b730c1d23 100644 --- a/plugins/Toaster/src/toast_notification.h +++ b/plugins/Toaster/src/toast_notification.h @@ -8,7 +8,6 @@ typedef __FITypedEventHandler_2_Windows__CUI__CNotifications__CToastNotification class ToastNotification
{
-private:
uint32_t _signature = TOAST_SIGNATURE;
MCONTACT _hContact;
@@ -38,14 +37,19 @@ public: 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*);
- inline void* GetPluginData()
+ __forceinline bool IsValid() const
+ { return _signature == TOAST_SIGNATURE;
+ }
+
+ __forceinline void* GetPluginData() const
{ return _pvPopupData;
}
- inline MCONTACT GetContact()
+
+ __forceinline MCONTACT GetContact() const
{ return _hContact;
}
- inline LRESULT CallPopupProc(UINT uMsg)
+ __forceinline LRESULT CallPopupProc(UINT uMsg)
{ return (_pfnPopupProc ? _pfnPopupProc((HWND)this, uMsg, 0, 0) : 0);
}
|