// SAFChannelNotifyIncident.h : Declaration of the CSAFChannelNotifyIncident #ifndef __SAFCHANNELNOTIFYINCIDENT_H_ #define __SAFCHANNELNOTIFYINCIDENT_H_ #include "resource.h" // main symbols #include "SAFInciTrayIcon.h" ///////////////////////////////////////////////////////////////////////////// // CSAFChannelNotifyIncident class ATL_NO_VTABLE CSAFChannelNotifyIncident : public CComObjectRootEx, public CComCoClass, public IDispatchImpl { public: static UINT m_nRefCount; CSAFChannelNotifyIncident() { } DECLARE_CLASSFACTORY_SINGLETON(CSAFChannelNotifyIncident) DECLARE_REGISTRY_RESOURCEID(IDR_SAFCHANNELNOTIFYINCIDENT) DECLARE_NOT_AGGREGATABLE(CSAFChannelNotifyIncident) DECLARE_PROTECT_FINAL_CONSTRUCT() BEGIN_COM_MAP(CSAFChannelNotifyIncident) COM_INTERFACE_ENTRY(ISAFChannelNotifyIncident) COM_INTERFACE_ENTRY(IDispatch) END_COM_MAP() private: static CSAFInciTrayIcon m_TrayIcon; // ISAFChannelNotifyIncident public: STDMETHOD(onChannelUpdated)(ISAFChannel * ch, long dwCode, long n); STDMETHOD(onIncidentUpdated)(ISAFChannel * ch, ISAFIncidentItem * inc, long n); STDMETHOD(onIncidentRemoved)(ISAFChannel * ch, ISAFIncidentItem * inc, long n); STDMETHOD(onIncidentAdded)(ISAFChannel * ch, ISAFIncidentItem * inc, long n); }; #endif //__SAFCHANNELNOTIFYINCIDENT_H_