#include <dbListManager.h>
Collaboration diagram for dbListManager::registeredModels:
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 | |
RootModel * | pModel |
The model that these registration are appropriate. | |
QList< dbList * > | listOfLists |
List of dbList registered. |
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.