GWE::GweAdvancedController Class Reference

An advanced GWE Controller with networking and persistent storage. More...

#include <GweAdvancedController.h>

Inheritance diagram for GWE::GweAdvancedController:

Inheritance graph
[legend]
Collaboration diagram for GWE::GweAdvancedController:

Collaboration graph
[legend]
List of all members.

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::GElementIDElementsToUpdateInStorage

Detailed Description

An advanced GWE Controller with networking and persistent storage.

GweAdvancedController GweAdvancedController.h

Author:
Raphael Langerhorst


Constructor & Destructor Documentation

GWE::GweAdvancedController::GweAdvancedController ( GDataController data,
QObject *  parent = 0 
)

Constructor.

GWE::GweAdvancedController::~GweAdvancedController (  )  [virtual]

Virtual Destructor. Also stops the thread and waits() for it.


Member Function Documentation

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.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
Generated on Thu Nov 16 07:49:37 2006 for G System by  doxygen 1.4.7