class MTasAttribute |
Represents an attribute in tas data model. Attribute can have values or object as members.
Attribute in the tas data model represents an attribute of an object. Attributes can be simple name value pairs or more complicated structures. Complicated attribute values are represented as tasobjects.
The object does not have to contain all elements. Implementations of serialize have to take this fact into consideration.
Public Member Functions | |
---|---|
~MTasAttribute () | |
void | AddValueL (const TDesC &) |
void | CloneL ( MTasAttribute &) |
void | SetIdL (const TDesC &) |
void | SetIdL (const TInt &) |
void | SetNameL (const TDesC &) |
void | SetTypeL (const TDesC &) |
~MTasAttribute | ( | ) | [inline, virtual] |
Destructor for MTasAttribute . Needs to be defined here in case some implementations use arrays to avoid user 42 panic.
void | AddValueL | ( | const TDesC & | aValue | ) | [pure virtual] |
Add a simple value to the attribute. Simple values are can be repserented as string. If a more complicated value is required use AddObject. A new copy of the given descriptor is made. The value is copied simply to avoid a scenario where the data model would remove a buffer which would still be needed by the calling component.
const TDesC & aValue | New value for the attribute. |
void | CloneL | ( | MTasAttribute & | aAttribute | ) | [pure virtual] |
Deep copy the data from the given attribute to this attribute.
MTasAttribute & aAttribute | Data from the given attribute will be deep copied into this attribute. |
void | SetIdL | ( | const TDesC & | aId | ) | [pure virtual] |
Set an id for the attribute. Used to identify objects.
const TDesC & aId |
void | SetIdL | ( | const TInt & | aId | ) | [pure virtual] |
Set an id for the attribute. Used to identify objects.
const TInt & aId |
void | SetNameL | ( | const TDesC & | aName | ) | [pure virtual] |
Set the name of the attribute. A new copy of the given descriptor is made. The value is copied simply to avoid a scenario where the data model would remove a buffer which would still be needed by the calling component.
const TDesC & aName | Name of the attribute. |
void | SetTypeL | ( | const TDesC & | aName | ) | [pure virtual] |
Set the type of the attribute. A new copy of the given descriptor is made. The value is copied simply to avoid a scenario where the data model would remove a buffer which would still be needed by the calling component.
const TDesC & aName |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.