MvcDefSubject Class

class MvcDefSubject: public IMvcSubject

Default implementation of IMvcSubject interface

Defined in: MvcDefSbjObs.h

Class Members

FOUNDATION_API virtual void AddObserver(IMvcObserver* pObserver)

Adds a observer to the list of dependents on this object. When a change in state occurs, all observers are notified.

FOUNDATION_API virtual void RemoveObserver(IMvcObserver* pObserver)

The dependent identified by the argument is removed from this objects list of dependents

FOUNDATION_API virtual void UpdateAllObservers(IMvcObserver* pObserver = NULL, IMvcMessage* pMsg = NULL)

All objects dependent on this object are sent a notification indicating what aspect of this object has changed

FOUNDATION_API virtual BOOL HasObserver(IMvcObserver* pObserver)

Determine if the observer passed in is currently configured for this subject

FOUNDATION_API virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, void ** ppvObject)

Retrieve a pointer to an interface supported by this object.

FOUNDATION_API virtual ULONG STDMETHODCALLTYPE AddRef()

Add a reference to this object.

FOUNDATION_API virtual ULONG STDMETHODCALLTYPE Release()

Release a reference to this object.