An abstract class for the persistence backend. More...
#include <abstractdatastore.h>
Public Slots | |
virtual void | saveNode (Node *node)=0 |
Public Member Functions | |
virtual Node * | getRootNode ()=0 |
virtual Node * | getNode (NodeId id)=0 |
virtual Label * | getRootLabel ()=0 |
virtual void | removeNode (Node *node)=0 |
virtual void | addNode (Node *node)=0 |
virtual void | addLabel (Label *label)=0 |
virtual void | removeLabel (Label *label)=0 |
An abstract class for the persistence backend.
Implement this abstract class to create a persistence layer for this application. Which implementation of this class is used will be decided in the Controller.
virtual void AbstractDataStore::addLabel | ( | Label * | label | ) | [pure virtual] |
Add a label to the persistence layer.
label | The label wich will be added to the persistence layer. |
Implemented in XmlDataStore.
virtual void AbstractDataStore::addNode | ( | Node * | node | ) | [pure virtual] |
Add a node to the persistence layer.
node | The node which will be added to the persistence layer. |
Implemented in XmlDataStore.
Get a specific Node.
id | The id of the requested node. |
Implemented in XmlDataStore.
virtual Label* AbstractDataStore::getRootLabel | ( | ) | [pure virtual] |
Get the root label of the hierarchical label structure.
Implemented in XmlDataStore.
virtual Node* AbstractDataStore::getRootNode | ( | ) | [pure virtual] |
Get the node whose childs are the first level of nodes.
Implemented in XmlDataStore.
virtual void AbstractDataStore::removeLabel | ( | Label * | label | ) | [pure virtual] |
Remove a label from the persistence layer.
label | The label which will be removed from the persistence layer. |
Implemented in XmlDataStore.
virtual void AbstractDataStore::removeNode | ( | Node * | node | ) | [pure virtual] |
Remove a node with all its subnodes from the persistence layer.
node | The node which will be removed from the persistence layer. |
Implemented in XmlDataStore.
virtual void AbstractDataStore::saveNode | ( | Node * | node | ) | [pure virtual, slot] |
Save a node which has changed.
node | This node will be saved with all its changes. |
Implemented in XmlDataStore.