Class Definition File | ODDSConn.idl |
Class C++ Binding | ODDSConn.xh |
Class Hierarchy |
SOMObject ODObject ODDSConnection |
Description | The ODDSConnection class is inherited by the SOM object that is to support events. Each OpenDoc part that supports events would inherit ODDSConnection. ODDSConnection responsibilities include:
|
Methods | The methods defined by the ODDSConnection class include: |
Overridden Methods | There are no methods overridden by the ODDSConnection class. |
This method adds an event manager to the event manager list.
Signature
long AddEventMgr (ODDSEventMgr *manager) |
Parameters
Returns
Remarks
This method adds an event manager to the event manager list. Once a manager is added to the event manager list, the event interface is available to all environments.
ODDSConnection owns the event manager and deletes it in its destructor.
Exception Handling
Related Methods
This method adds an sink to the event manager list.
Signature
long AddSink (ODDSSink *sink, ODDSEventMgr **manager) |
Parameters
Returns
Remarks
This method finds the event manager with the same unique ID as the sink and calls event manager's AddSink method to add that sink to the event manager sink list. This method returns the event manager for the later sink deletion. This method returns manager=NULL if not found. The same operation can be done by issuing an AddSink directly to the event manager.
Exception Handling
Related Methods
This method creates and returns an enumeration object for iteration through the event managers.
Signature
long CreateEventMgrEnum (ODDSEventMgrEnum **eventMgr) |
Parameters
Returns
Remarks
This method creates and returns an enumeration object for iteration through the event managers.
Exception Handling
This method removes an event manager for the event manager list.
Signature
long DeleteEventMgr (ODGUID *id) |
Parameters
Returns
Remarks
This method removes and event manager from the event manager list.
The sink list of the event manager is deleted as a result of the event manager destruction.
Related Methods
This method returns the event manager with the give unique identifier.
Signature
long GetEventMgr (ODGUID *id, ODDSEventMgr **eventMgr) |
Parameters
Returns
Remarks
This method searches the event manager list and returns the event manager with the given unique identifier. It returns eventMgr=NULL if not found.
This method adds OLE connection point support a connection object.
Signature
long InitOLEConnectionPointContainer (void *olewrapper, void *pUnkOuter, void **pmyUnk) |
Parameters
Returns
Remarks
This interface is used by OpenDoc OLE wrapper to establish the OLE IConnectionPoint container and IConnectionPoint interface for the OpenDoc part.
Exception Handling