sipxportlib  Version 3.3
Public Member Functions | List of all members
UtlObserver Class Referenceabstract

#include <UtlObservable.h>

Public Member Functions

virtual ~UtlObserver ()
 
virtual void onNotify (UtlObservable *subject, int code, void *pUserData)=0
 

Detailed Description

Generic interface for any object which is an observer of an observable.

Constructor & Destructor Documentation

virtual ~UtlObserver ( )
inlinevirtual

Member Function Documentation

virtual void onNotify ( UtlObservable subject,
int  code,
void *  pUserData 
)
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.

Parameters
subjectThe observable which invoked this method.
codeAn integer notification value. For example, it can be used to indicate the observable's state.
pUserDataA reference to any object that the observable may pass to the observer.