TasObject Class Reference

#include <ext/app/exttesttools/tasqtdatamodel.h>

class TasObject

TasObject represents an object in the tas data model.

Public Member Functions
~TasObject()
TasAttribute &addAttribute()
TasAttribute &addAttribute(const QString &)
TasAttribute &addAttribute(const QString &, const QString &)
TasAttribute &addAttribute(const QString &, int)
TasAttribute &addAttribute(const QString &, qreal)
TasAttribute &addAttribute(const QString &, const QSize &)
TasAttribute &addAttribute(const QString &, const QSizeF &)
TasAttribute &addAttribute(const QString &, const QRect &)
TasAttribute &addAttribute(const QString &, const QRectF &)
TasAttribute &addAttribute(const QString &, const QPoint &)
TasAttribute &addAttribute(const QString &, const QPointF &)
TasAttribute &addBooleanAttribute(const QString &, bool)
TasObject &addNewObject(QString, const QString &, const QString &)
TasObject &addObject()
QString getType()
voidsetEnv(const QString &)
voidsetId(const QString &)
voidsetName(const QString &)
voidsetParentId(const QString &)
voidsetType(const QString &)

Detailed Description

Represents an object in tas data model. The object does not have to contain all elements.

Constructor & Destructor Documentation

~TasObject ( )

~TasObject()

Destructor

Member Function Documentation

addAttribute ( )

TasAttribute &addAttribute()

Add new attribute to the object.

addAttribute ( const QString & )

TasAttribute &addAttribute(const QString &name)

Add new attribute to the object with name.

addAttribute ( const QString &, const QString & )

TasAttribute &addAttribute(const QString &name,
const QString &value
)

Add new attribute to the object with the given name and value.

addAttribute ( const QString &, int )

TasAttribute &addAttribute(const QString &name,
intvalue
)

Add new attribute to the object with the given name and value.

addAttribute ( const QString &, qreal )

TasAttribute &addAttribute(const QString &name,
qrealvalue
)

Add new attribute to the object with the given name and value.

addAttribute ( const QString &, const QSize & )

TasAttribute &addAttribute(const QString &name,
const QSize &value
)

Add a QSize as a new attribute. Format will be "width,height"

addAttribute ( const QString &, const QSizeF & )

TasAttribute &addAttribute(const QString &name,
const QSizeF &value
)

Add a QSizeF as a new attribute. Format will be "width,height"

addAttribute ( const QString &, const QRect & )

TasAttribute &addAttribute(const QString &name,
const QRect &value
)

Add a QRect as a new attribute. Format will be "x,y,width,height"

addAttribute ( const QString &, const QRectF & )

TasAttribute &addAttribute(const QString &name,
const QRectF &value
)

Add a QRectF as a new attribute. Format will be "x,y,width,height"

addAttribute ( const QString &, const QPoint & )

TasAttribute &addAttribute(const QString &name,
const QPoint &value
)

Add a QRectF as a new attribute. Format will be "x,y,width,height"

addAttribute ( const QString &, const QPointF & )

TasAttribute &addAttribute(const QString &name,
const QPointF &value
)

Add a QRectF as a new attribute. Format will be "x,y,width,height"

addBooleanAttribute ( const QString &, bool )

TasAttribute &addBooleanAttribute(const QString &name,
boolvalue
)

Add new attribute to the object with the given name and value.

addNewObject ( QString, const QString &, const QString & )

TasObject &addNewObject(QStringid,
const QString &name,
const QString &type
)

Add new object under this object with the given object values.

addObject ( )

TasObject &addObject()

Add new object under this object

getType ( )

QString getType()

setEnv ( const QString & )

voidsetEnv(const QString &env)

setId ( const QString & )

voidsetId(const QString &id)

Set an id to the object. Ids should be as uniques as possible. Ids are used to separate objects.

setName ( const QString & )

voidsetName(const QString &name)

Set the name for the attribute. Names are very usefull since they can be used to identify objects. For instance a text edit field that takes the name field from a form type ui should be named as "name". This makes testing easier since the control can now be identified as a name edit field.

setParentId ( const QString & )

voidsetParentId(const QString &id)

setType ( const QString & )

voidsetType(const QString &type)

Set the type for the object.