CUserNotification.h (fe4704fa) | CUserNotification.h (49b2b1da) |
---|---|
1/* 2 * Copyright 2018 Hermes Belusca-Maito 3 * 4 * Pass on icon notification messages to the systray implementation 5 * in the currently running shell. 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public --- 52 unchanged lines hidden (view full) --- 61 IN WPARAM wParam, 62 IN LPARAM lParam); 63 64public: 65 CUserNotification(); 66 ~CUserNotification(); 67 68 // IUserNotification | 1/* 2 * Copyright 2018 Hermes Belusca-Maito 3 * 4 * Pass on icon notification messages to the systray implementation 5 * in the currently running shell. 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public --- 52 unchanged lines hidden (view full) --- 61 IN WPARAM wParam, 62 IN LPARAM lParam); 63 64public: 65 CUserNotification(); 66 ~CUserNotification(); 67 68 // IUserNotification |
69 virtual HRESULT STDMETHODCALLTYPE SetBalloonInfo( | 69 STDMETHOD(SetBalloonInfo)( |
70 IN LPCWSTR pszTitle, 71 IN LPCWSTR pszText, | 70 IN LPCWSTR pszTitle, 71 IN LPCWSTR pszText, |
72 IN DWORD dwInfoFlags); | 72 IN DWORD dwInfoFlags) override; |
73 | 73 |
74 virtual HRESULT STDMETHODCALLTYPE SetBalloonRetry( | 74 STDMETHOD(SetBalloonRetry)( |
75 IN DWORD dwShowTime, // Time intervals in milliseconds 76 IN DWORD dwInterval, | 75 IN DWORD dwShowTime, // Time intervals in milliseconds 76 IN DWORD dwInterval, |
77 IN UINT cRetryCount); | 77 IN UINT cRetryCount) override; |
78 | 78 |
79 virtual HRESULT STDMETHODCALLTYPE SetIconInfo( | 79 STDMETHOD(SetIconInfo)( |
80 IN HICON hIcon, | 80 IN HICON hIcon, |
81 IN LPCWSTR pszToolTip); | 81 IN LPCWSTR pszToolTip) override; |
82 83 // Blocks until the notification times out. | 82 83 // Blocks until the notification times out. |
84 virtual HRESULT STDMETHODCALLTYPE Show( | 84 STDMETHOD(Show)( |
85 IN IQueryContinue* pqc, | 85 IN IQueryContinue* pqc, |
86 IN DWORD dwContinuePollInterval); | 86 IN DWORD dwContinuePollInterval) override; |
87 | 87 |
88 virtual HRESULT STDMETHODCALLTYPE PlaySound( 89 IN LPCWSTR pszSoundName); | 88 STDMETHOD(PlaySound)( 89 IN LPCWSTR pszSoundName) override; |
90 91#if 0 92 // IUserNotification2 93 // Blocks until the notification times out. | 90 91#if 0 92 // IUserNotification2 93 // Blocks until the notification times out. |
94 virtual HRESULT STDMETHODCALLTYPE Show( | 94 STDMETHOD(Show)( |
95 IN IQueryContinue* pqc, 96 IN DWORD dwContinuePollInterval, | 95 IN IQueryContinue* pqc, 96 IN DWORD dwContinuePollInterval, |
97 IN IUserNotificationCallback* pSink); | 97 IN IUserNotificationCallback* pSink) override; |
98#endif 99 100 DECLARE_REGISTRY_RESOURCEID(IDR_USERNOTIFICATION) 101 DECLARE_NOT_AGGREGATABLE(CUserNotification) 102 103 DECLARE_PROTECT_FINAL_CONSTRUCT() 104 105 BEGIN_COM_MAP(CUserNotification) 106 COM_INTERFACE_ENTRY_IID(IID_IUserNotification , IUserNotification ) 107 // COM_INTERFACE_ENTRY_IID(IID_IUserNotification2, IUserNotification2) 108 END_COM_MAP() 109}; 110 111#endif /* _USERNOTIFICATION_H_ */ | 98#endif 99 100 DECLARE_REGISTRY_RESOURCEID(IDR_USERNOTIFICATION) 101 DECLARE_NOT_AGGREGATABLE(CUserNotification) 102 103 DECLARE_PROTECT_FINAL_CONSTRUCT() 104 105 BEGIN_COM_MAP(CUserNotification) 106 COM_INTERFACE_ENTRY_IID(IID_IUserNotification , IUserNotification ) 107 // COM_INTERFACE_ENTRY_IID(IID_IUserNotification2, IUserNotification2) 108 END_COM_MAP() 109}; 110 111#endif /* _USERNOTIFICATION_H_ */ |