1 #ifndef TORCOBSERVABLE_H 2 #define TORCOBSERVABLE_H 21 QMutex m_observerLock;
22 QList<QObject*> m_observers;
28 #endif // TORCOBSERVABLE_H virtual ~TorcObservable()=default
A general purpose event object.
void AddObserver(QObject *Observer)
brief Register the given object to receive events.
void Notify(const TorcEvent &Event)
Brief Send the given event to each registered listener/observer.
void RemoveObserver(QObject *Observer)
brief Deregister the given object.
TorcObservable will send event notifcations to registered 'listeners'.