sipxportlib
Version 3.3
|
#include <UtlObservable.h>
Public Member Functions | |
virtual | ~UtlObserver () |
virtual void | onNotify (UtlObservable *subject, int code, void *pUserData)=0 |
Generic interface for any object which is an observer of an observable.
|
inlinevirtual |
|
pure virtual |
Notification method which the observer must implement. The observable's (also, subject) responsibility is to notify the observers of state changes. The observable will notify the observers by invoking this onNotify method.
subject | The observable which invoked this method. |
code | An integer notification value. For example, it can be used to indicate the observable's state. |
pUserData | A reference to any object that the observable may pass to the observer. |