GObserver Class Reference

List of all members.

Public Member Functions

virtual void update (GObservable *observable, const void *pUserData)=0

Detailed Description

This interface is part of some kind of MVC (Model-View-Controller) pattern. Each class implementing this interface can be registered to an GObservable object so that it is notified in case of an event.


Member Function Documentation

virtual void update ( GObservable observable,
const void *  pUserData 
) [pure virtual]

Each class inheriting from this interface should implement this method. It defines what the GObserver will do in case it is notified by the GObservable

Parameters:
observablethe GObservable object that is observed
pUserDatathe event/message/data that is send by the GObservable object to the GObserver