#include <abstractmodel.h>
Inheritance diagram for AbstractModel:

Public Member Functions | |
| AbstractModel (QObject *objectPtr) | |
| virtual | ~AbstractModel () |
| AbstractController * | controller () const |
Protected Member Functions | |
| virtual void | dispatchEvent (MEvent *) |
| virtual void | changeControllerEvent (MChangeControllerEvent *) |
| void | postControllerEvent (CEvent *event) |
| AbstractModel::AbstractModel | ( | QObject * | objectPtr | ) |
Constructs an abstract model.
| AbstractModel::~AbstractModel | ( | ) | [virtual] |
Destroys the abstract model.
If the controller() is non-null, this will post a CChangeModelEvent to it with null (0) as the parameter.
| AbstractController * AbstractModel::controller | ( | ) | const |
Returns the model's controller.
| void AbstractModel::dispatchEvent | ( | MEvent * | event | ) | [protected, virtual] |
The model's event dispatcher.
Asserts that the event is non-null.
Warning! It is assumed that the events have their correct type set (as it uses static casts).
Reimplemented in AttributeDoc, Doc, ElementDoc, DigestDbModel, and SettingsModel.
| void AbstractModel::changeControllerEvent | ( | MChangeControllerEvent * | event | ) | [protected, virtual] |
Changes the controller that the model should post messages to.
Typically, only a controller should post a MChangeControllerEvent to a model, as a result of a CChangeModelEvent being posted to it.
Asserts that the event is non-null.
Reimplemented in AttributeDoc, Doc, ElementDoc, Diagram, DigestDbModel, and SettingsModel.
| void AbstractModel::postControllerEvent | ( | CEvent * | event | ) | [protected] |
1.5.2