Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

dbListManager::registeredModels Class Reference

class that keep track of all the models that are interested in a dbList More...

#include <dbListManager.h>

Collaboration diagram for dbListManager::registeredModels:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 registeredModels (RootModel *model)
 set the model
void registerList (dbList *list)
 add a new list to the collection of registered lists
bool listIsMember (dbList *list)
 See if a list is registered.
void dump ()
 Sens diagnostics to stdout.

Public Attributes

RootModelpModel
 The model that these registration are appropriate.
QList< dbList * > listOfLists
 List of dbList registered.

Detailed Description

class that keep track of all the models that are interested in a dbList

This is a class will keep a list of every dbList that a given model is interested in.
For example: The Module tab has a QTreeView. This view is associated with the ModuleModel class, this view will display every Institute, under each Institute it will display every Programme offered by the Institute. Under each Programme will be displayed every Module. This single view will display data from three different tables and so if the data on any of the three tables changes then this should be reflected on the View. This is done by getting the ModuleModel to register the three dbLists, which, taken from ModulePageWidget::init(), is done as follows: dataLists->registerModel(model ,dbListManager::regInstitute +dbListManagerregProgramme +dbListManagerregModule );

Definition at line 86 of file dbListManager.h.


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 16:27:18 2006 for time-table by  doxygen 1.4.4