MTasAttribute Class Reference
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.
Constructor & Destructor Documentation
~MTasAttribute()
~MTasAttribute | ( | ) | [inline, virtual] |
Destructor for MTasAttribute. Needs to be defined here in case some implementations use arrays to avoid user 42 panic.
Member Functions Documentation
AddValueL(const TDesC &)
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.
Parameters
const TDesC & aValue | New value for the attribute. |
CloneL(MTasAttribute &)
Deep copy the data from the given attribute to this attribute.
Parameters
MTasAttribute & aAttribute | Data from the given attribute will be deep copied into this attribute. |
SetIdL(const TDesC &)
void | SetIdL | ( | const TDesC & | aId | ) | [pure virtual] |
Set an id for the attribute. Used to identify objects.
SetIdL(const TInt &)
void | SetIdL | ( | const TInt & | aId | ) | [pure virtual] |
Set an id for the attribute. Used to identify objects.
SetNameL(const TDesC &)
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.
Parameters
const TDesC & aName | Name of the attribute. |
SetTypeL(const TDesC &)
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.
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.