class CODConnectionEvent: public IODConnectionEvent
This class implements the IODConnectionEvent interface. It contains a reference count member variable, a pointer to a port, and an integer notification code.
Defined in: OdConnectionEvent.h
See Also
VIEWS_API CODConnectionEvent(CODPortComponent* pPort, const int nNotifyCode)
Construct a connection event given a port and notification code.
VIEWS_API virtual ~CODConnectionEvent()
Destroy a connection event.
unsigned long m_ulRefCount
Reference count.
CODPortComponent* m_pPort
Pointer to port on which the event occurred.
int m_nNotifyCode
Notification code indicating what occurred on the connection.
VIEWS_API ULONG STDMETHODCALLTYPE AddRef()
Add a reference to this object.
VIEWS_API ULONG STDMETHODCALLTYPE Release()
Release a reference to this object.
VIEWS_API virtual bool Dispatch(sfl::IQueryGuid* pIListener)
Dispatches the event to the given event listener.
VIEWS_API virtual CODPortComponent* GetPort()
Return a pointer to the port associated with this connection event.
VIEWS_API virtual int GetNotifyCode() const
Return the notification code associated with this connection event.