CODConnectionEvent Class

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

IODConnectionEvent

Class Members

 CODConnectionEvent(CODPortComponent* pPort, const int nNotifyCode)

Construct a connection event given a port and notification code.

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.

ULONG STDMETHODCALLTYPE  AddRef()

Add a reference to this object.

ULONG STDMETHODCALLTYPE  Release()

Release a reference to this object.

virtual bool  Dispatch(sfl::IQueryGuid* pIListener)

Dispatches the event to the given event listener.

virtual CODPortComponent*  GetPort()

Return a pointer to the port associated with this connection event.

virtual int  GetNotifyCode() const

Return the notification code associated with this connection event.