TasDataModel Class Reference

#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 &)
voidclearModel()
TasObjectContainer *findObjectContainer(const QString &)
voidserializeModel(QByteArray &, bool)
voidserializeModel(QByteArray &, SerializeFilter *, bool)

Detailed Description

Interface to the TasDataModel. The tas data model contains the ui data collected from qt.

Constructor & Destructor Documentation

TasDataModel ( )

TasDataModel()

Constructor for the TasDataModel. The model is created completely empty.

~TasDataModel ( )

~TasDataModel()

Destructor

Member Function Documentation

addNewObjectContainer ( )

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.

addNewObjectContainer ( const QString &, const QString & )

TasObjectContainer &addNewObjectContainer(const QString &name,
const QString &type
)

Adds a new container to the model with the given values.

addNewObjectContainer ( int, const QString &, const QString & )

TasObjectContainer &addNewObjectContainer(intid,
const QString &name,
const QString &type
)

Adds a new container to the model with the given values.

clearModel ( )

voidclearModel()

Clears the model.

findObjectContainer ( const QString & )

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.

serializeModel ( QByteArray &, bool )

voidserializeModel(QByteArray &xmlData,
boolcontainers
)

serializeModel ( QByteArray &, SerializeFilter *, bool )

voidserializeModel(QByteArray &xmlData,
SerializeFilter *filter = 0,
boolcontainers = 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.