#include <GweAdvancedController.h>
Inheritance diagram for GWE::GweAdvancedController:


Public Member Functions | |
| GweAdvancedController (GDataController *data, QObject *parent=0) | |
| virtual | ~GweAdvancedController () |
Protected Slots | |
| virtual void | connectBasicElementSignals (const GCS::GElementID &id) |
| void | addElementForWriteBack (const GCS::GElementID &element) |
Protected Member Functions | |
| void | run () |
| virtual void | customEvent (QEvent *event) |
Private Attributes | |
| QList< GCS::GElementID > | ElementsToUpdateInStorage |
GweAdvancedController GweAdvancedController.h
| GWE::GweAdvancedController::GweAdvancedController | ( | GDataController * | data, | |
| QObject * | parent = 0 | |||
| ) |
Constructor.
| GWE::GweAdvancedController::~GweAdvancedController | ( | ) | [virtual] |
Virtual Destructor. Also stops the thread and waits() for it.
| void GWE::GweAdvancedController::addElementForWriteBack | ( | const GCS::GElementID & | element | ) | [protected, slot] |
Whenever an element changes this slot is called to make sure the changes get written to the storage.
| void GWE::GweAdvancedController::connectBasicElementSignals | ( | const GCS::GElementID & | id | ) | [protected, virtual, slot] |
connects elementChanged() to addElementForWriteBack() and then calls GweController::connectBasicElementSignals()
Reimplemented from GWE::GweController.
| void GWE::GweAdvancedController::customEvent | ( | QEvent * | event | ) | [protected, virtual] |
Process custom events like writing back element data to storage.
| void GWE::GweAdvancedController::run | ( | ) | [protected] |
Periodically forces saving of open elements to the storage.
Basically this will also force element data propagation to other servers.
Stops when Interrupted is set to true.
QList<GCS::GElementID> GWE::GweAdvancedController::ElementsToUpdateInStorage [private] |
A list of elements that need to be written back to the storage (database). The actual writing back is done in a timer event.
1.4.7