#include <ext/app/exttesttools/tasqtdatamodel.h>
| class TasDataModel |
TasDataModel Root class of the data model.
| Public Member Functions | |
|---|---|
| TasDataModel() | |
| ~TasDataModel() | |
| TasObjectContainer & | addNewObjectContainer() |
| TasObjectContainer & | addNewObjectContainer(const QString &, const QString &) |
| TasObjectContainer & | addNewObjectContainer(int, const QString &, const QString &) |
| void | clearModel() |
| TasObjectContainer * | findObjectContainer(const QString &) |
| void | serializeModel(QByteArray &, bool) |
| void | serializeModel(QByteArray &, SerializeFilter *, bool) |
Interface to the TasDataModel. The tas data model contains the ui data collected from qt.
| TasDataModel | ( | ) |
Constructor for the TasDataModel. The model is created completely empty.
| TasObjectContainer & | addNewObjectContainer | ( | ) |
Adds a new TasObjectContainer to the model. The model can contain more that one container. Use the container to add objects to the model.
| TasObjectContainer & | addNewObjectContainer | ( | const QString & | name, |
| const QString & | type | |||
| ) | ||||
Adds a new container to the model with the given values.
| TasObjectContainer & | addNewObjectContainer | ( | int | id, |
| const QString & | name, | |||
| const QString & | type | |||
| ) | ||||
Adds a new container to the model with the given values.
| TasObjectContainer * | findObjectContainer | ( | const QString & | id | ) |
Look for a container with the given id. The first occurence of a container with the given id is placed in the container. Returns false if no matches found.
| void | serializeModel | ( | QByteArray & | xmlData, |
| bool | containers | |||
| ) | ||||
| void | serializeModel | ( | QByteArray & | xmlData, |
| SerializeFilter * | filter = 0, | |||
| bool | containers = false | |||
| ) | ||||
Serialize the model into xml format specified by testabililty. Filter ownership is assumed and it will be removed once the serializing has been completed.