Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.4 KiB

  1. // SAFChannelNotifyIncident.h : Declaration of the CSAFChannelNotifyIncident
  2. #ifndef __SAFCHANNELNOTIFYINCIDENT_H_
  3. #define __SAFCHANNELNOTIFYINCIDENT_H_
  4. #include "resource.h" // main symbols
  5. #include "SAFInciTrayIcon.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CSAFChannelNotifyIncident
  8. class ATL_NO_VTABLE CSAFChannelNotifyIncident :
  9. public CComObjectRootEx<CComSingleThreadModel>,
  10. public CComCoClass<CSAFChannelNotifyIncident, &CLSID_SAFChannelNotifyIncident>,
  11. public IDispatchImpl<ISAFChannelNotifyIncident, &IID_ISAFChannelNotifyIncident, &LIBID_SAFINCITRACLib>
  12. {
  13. public:
  14. static UINT m_nRefCount;
  15. CSAFChannelNotifyIncident()
  16. {
  17. }
  18. DECLARE_CLASSFACTORY_SINGLETON(CSAFChannelNotifyIncident)
  19. DECLARE_REGISTRY_RESOURCEID(IDR_SAFCHANNELNOTIFYINCIDENT)
  20. DECLARE_NOT_AGGREGATABLE(CSAFChannelNotifyIncident)
  21. DECLARE_PROTECT_FINAL_CONSTRUCT()
  22. BEGIN_COM_MAP(CSAFChannelNotifyIncident)
  23. COM_INTERFACE_ENTRY(ISAFChannelNotifyIncident)
  24. COM_INTERFACE_ENTRY(IDispatch)
  25. END_COM_MAP()
  26. private:
  27. static CSAFInciTrayIcon m_TrayIcon;
  28. // ISAFChannelNotifyIncident
  29. public:
  30. STDMETHOD(onChannelUpdated)(ISAFChannel * ch, long dwCode, long n);
  31. STDMETHOD(onIncidentUpdated)(ISAFChannel * ch, ISAFIncidentItem * inc, long n);
  32. STDMETHOD(onIncidentRemoved)(ISAFChannel * ch, ISAFIncidentItem * inc, long n);
  33. STDMETHOD(onIncidentAdded)(ISAFChannel * ch, ISAFIncidentItem * inc, long n);
  34. };
  35. #endif //__SAFCHANNELNOTIFYINCIDENT_H_