windows-nt/Source/XPSP1/NT/admin/pchealth/helpctr/rc/safincitrac/safchannelnotifyincident.h
2020-09-26 16:20:57 +08:00

44 lines
1.4 KiB
C++

// 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<CComSingleThreadModel>,
public CComCoClass<CSAFChannelNotifyIncident, &CLSID_SAFChannelNotifyIncident>,
public IDispatchImpl<ISAFChannelNotifyIncident, &IID_ISAFChannelNotifyIncident, &LIBID_SAFINCITRACLib>
{
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_