TIBCO Adapter SDK C++ Reference
Up | Next
MEventSource::addListener
MEventSource | See Also
Adds an event listener to this event source. An event listener is a callback class that registers interest in certain events and is notified when that event occurs.
Remarks
Applications can create multiple subclasses of MEventListener for different types of events and attach multiple listeners to one event source. For example, you could attach one listener that waits for data events and one that waits for timeout events.

Do not delete the MEventSource object from the event listener. Because the event source dispatches the event listener, memory corruption results if the event listener deletes the event source (making it no longer valid).

Parameters
Parameters Description
MEventListener* pMEventListener Pointer to the event listener that is to be added.
Exceptions
MException is thrown when the value of pMEventListener is NULL.

See Also
Declaration
virtual Mboolean addListener(MEventListener* pMEventListener) throw(MException);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.