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


Public Slots | |
| virtual bool | add (GCS::GElement *)=0 |
| virtual bool | writeOpenElementToStorage (const GCS::GElementID &)=0 |
| virtual bool | close (const GCS::GElementID &)=0 |
| virtual bool | postDelete (const GCS::GElementID &)=0 |
| virtual void | shutdown ()=0 |
Signals | |
| void | elementAdded (const GCS::GElementID &) |
| void | elementUpdated (const GCS::GElementID &) |
| void | elementOpened (const GCS::GElementID &) |
| void | elementClosed (const GCS::GElementID &) |
| void | elementDeleted (const GCS::GElementID &) |
Public Member Functions | |
| GDataController (QObject *parent=0) | |
| virtual | ~GDataController () |
| virtual GCS::GElement * | open (const GCS::GElementID &)=0 |
| virtual GCS::GElement * | getOpenElement (const GCS::GElementID &)=0 |
| virtual QList< GCS::GElementID > | getListOfOpenElements ()=0 |
| virtual QList< GCS::GElementID > | getListOfAllElements ()=0 |
| virtual bool | isPrimaryElement (const GCS::GElementID &) const |
GDataController GDataController.h
| GWE::GDataController::GDataController | ( | QObject * | parent = 0 |
) | [inline] |
Constructor.
| virtual GWE::GDataController::~GDataController | ( | ) | [inline, virtual] |
Virtual destructor.
| virtual bool GWE::GDataController::add | ( | GCS::GElement * | ) | [pure virtual, slot] |
Adds given element to the GWE
If false is returned, either the element already exists or it could not be added for various reasons.
Implemented in GWE::GXmlDataController.
| virtual bool GWE::GDataController::close | ( | const GCS::GElementID & | ) | [pure virtual, slot] |
Closes given element.
Implemented in GWE::GXmlDataController.
| void GWE::GDataController::elementAdded | ( | const GCS::GElementID & | ) | [signal] |
Emitted after an element was added.
| void GWE::GDataController::elementClosed | ( | const GCS::GElementID & | ) | [signal] |
Emitted when an element was closed. Closed elements are NOT in memory anymore.
| void GWE::GDataController::elementDeleted | ( | const GCS::GElementID & | ) | [signal] |
Emitted when an element was removed.
| void GWE::GDataController::elementOpened | ( | const GCS::GElementID & | ) | [signal] |
Emitted when an element is opened.
| void GWE::GDataController::elementUpdated | ( | const GCS::GElementID & | ) | [signal] |
Emitted after an element was updated. This can be an update when receiving data from other GWE Servers for example. Normally the GWE Controller should close opened elements without saving them and open it again if needed.
| virtual QList<GCS::GElementID> GWE::GDataController::getListOfAllElements | ( | ) | [pure virtual] |
| virtual QList<GCS::GElementID> GWE::GDataController::getListOfOpenElements | ( | ) | [pure virtual] |
| virtual GCS::GElement* GWE::GDataController::getOpenElement | ( | const GCS::GElementID & | ) | [pure virtual] |
Get an already opened element. The element must previously have been opened with open(), otherwise NULL is returned.
Implemented in GWE::GXmlDataController.
| virtual bool GWE::GDataController::isPrimaryElement | ( | const GCS::GElementID & | ) | const [inline, virtual] |
Reimplemented in GWE::GXmlDataController.
| virtual GCS::GElement* GWE::GDataController::open | ( | const GCS::GElementID & | ) | [pure virtual] |
Open an element for general purposes (e.g. executing the agents,...)
Implemented in GWE::GXmlDataController.
| virtual bool GWE::GDataController::postDelete | ( | const GCS::GElementID & | ) | [pure virtual, slot] |
In order to persistently remove an element this method needs to be used, it makes sure that the element stops executing and is properly removed (persistent) from memory.
Although it may take some time until the element is truly removed, the call itself is (or should be) non-blocking.
Implemented in GWE::GXmlDataController.
| virtual void GWE::GDataController::shutdown | ( | ) | [pure virtual, slot] |
This should be called before closing the application, all required cleanup is done here.
Implemented in GWE::GXmlDataController.
| virtual bool GWE::GDataController::writeOpenElementToStorage | ( | const GCS::GElementID & | ) | [pure virtual, slot] |
Forces a full backup of specified element. This is useful when some changes were made to an open element and the complete element should be written back to the storage.
Implemented in GWE::GXmlDataController.
1.4.7