class MTasObject : public MTasAttribute |
Represents an object in tas data model. MTasObjects are derived from MTasAttribute. MTasObject can contains a handle to its parent, children and derivation tree.
The object does not have to contain all elements. Implementations of serialize have to take this fact into consideration.
Public Member Functions | |
---|---|
~MTasObject() | |
MTasAttribute & | AddAttributeL() |
MTasAttribute & | AddAttributeL(const TDesC &, const TDesC &) |
MTasAttribute & | AddAttributeL(const TDesC &, const TInt &) |
MTasObject & | AddObjectL() |
MTasObject & | AddSuperClassL() |
void | CloneL(MTasObject &) |
void | SetParentL(MTasObject &) |
~MTasObject | ( | ) | [inline, virtual] |
Destructor for MTasObject Needs to be defined here in case some implementations use arrays to avoid user 42 panic.
MTasAttribute & | AddAttributeL | ( | ) | [pure virtual] |
Add new attribute to the MTasObject. A reference to a new empty MTasAttribute instance is returned.
MTasAttribute & | AddAttributeL | ( | const TDesC & | aName, |
const TDesC & | aValue | |||
) | [pure virtual] |
Add new attribute to the MTasObject. A reference to a new empty MTasAttribute instance is returned.
MTasAttribute & | AddAttributeL | ( | const TDesC & | aName, |
const TInt & | aValue | |||
) | [pure virtual] |
Add new attribute to the MTasObject. A reference to a new empty MTasAttribute instance is returned.
MTasObject & | AddObjectL | ( | ) | [pure virtual] |
Add a complicated value to the object. Returns a reference new empty MTasObject which has been added to the attribute.
MTasObject & | AddSuperClassL | ( | ) | [pure virtual] |
Add the object that this object derives from. A reference to a new MTasObject instance is retuned.
void | CloneL | ( | MTasObject & | aObject | ) | [pure virtual] |
Deep copy the data from the given object to this object.
MTasObject & aObject | Data from the given object will be deep copied into this object. |
void | SetParentL | ( | MTasObject & | aParent | ) | [pure virtual] |
Set the parent of this object. Parent is not the object that this object derives from but an object that this object belongs to e.g ui component in a window.
The parent will be added to model as a deep copy of the given object. This is done to make sure that the parent object which may also reside in a different location in the model is not deleted too early by some party. This means that the parent given will not be deleted by this model.
MTasObject & aParent | Parent of this object. |
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.