CNSmlDmMgmtTree Class Reference

class CNSmlDmMgmtTree : public CBase

CNSmlDmMgmtTree is the root node in DDF structure

Since

Inherits from

Constructor & Destructor Documentation

CNSmlDmMgmtTree()

CNSmlDmMgmtTree()[private]

Constructor

~CNSmlDmMgmtTree()

~CNSmlDmMgmtTree()[virtual]

Destructor

Member Functions Documentation

AddChildObjectGroupL()

MSmlDmDDFObject &AddChildObjectGroupL()

Inherited from MSmlDmDDFObject, no use in this class

AddChildObjectL(const TDesC8 &)

MSmlDmDDFObject &AddChildObjectL(const TDesC8 &aNodeName)

Adds child object with name under th root node. This is inherited from MSmlDmDDFObject.

Parameters

const TDesC8 & aNodeNameNode name

AddDFTypeMimeTypeL(const TDesC8 &)

voidAddDFTypeMimeTypeL(const TDesC8 &aMimeType)

Inherited from MSmlDmDDFObject, no use in this class

Parameters

const TDesC8 & aMimeTypeMime type

ConstructL()

voidConstructL()[private]

Second phase constructor

FindLoadedAdaptersL(RArray< TUint32 > &, CNSmlDmNodeList *)

IMPORT_C TBoolFindLoadedAdaptersL(RArray< TUint32 > &aLoadedAdapters,
CNSmlDmNodeList *aNodeListPtr = NULL
)

Finds the allrady loaded adapters

Parameters

RArray< TUint32 > & aLoadedAdaptersArrayf of found adapter ids
CNSmlDmNodeList * aNodeListPtr = NULLAlgorythm is recursive and next level nodelist pointer is provided here

FindNameFromNodeListL(const TDesC8 &, CNSmlDmNodeList *&)

IMPORT_C TNSmlDmDDFFormatFindNameFromNodeListL(const TDesC8 &aURI,
CNSmlDmNodeList *&aFinalPtr
)

Finds the node pointed by aURI from tree

Parameters

const TDesC8 & aURIUri
CNSmlDmNodeList *& aFinalPtrFound pointer is written here

GenerateWBXMLL(RWriteStream &)

IMPORT_C voidGenerateWBXMLL(RWriteStream &aStream)

Generates wbxml of the whole DDF and writes it to aStream

Parameters

RWriteStream & aStreamReference to stream where to write generated wbxml

GenerateXMLL(CBufBase &)

IMPORT_C voidGenerateXMLL(CBufBase &aObject)

Generates xml of the whole DDF and writes it to aObject

Parameters

CBufBase & aObjectReference to buffer where to write generated xml

NewL()

IMPORT_C CNSmlDmMgmtTree *NewL()[static]

Two-phased construction

NodeListPtr()

IMPORT_C CNSmlDmNodeList *NodeListPtr()

Returns pointer to actual root nodelist pointer. The whole tree can be accessed through this pointer Root nodelist pointer

ParseWBXMLL(RReadStream &)

IMPORT_C voidParseWBXMLL(RReadStream &aReader)

Parses wbxml from stream to ddf structure. This is used when ddf subtree is got from hostserver. The ddf is parsed on the existing tree, i.e the whole tree is got when all subtrees are parsed.

Parameters

RReadStream & aReaderReference to stream where to read wbxml

SetAccessTypesL(TSmlDmAccessTypes)

voidSetAccessTypesL(TSmlDmAccessTypesaAccessTypes)

Inherited from MSmlDmDDFObject, no use in this class

Parameters

TSmlDmAccessTypes aAccessTypesAccess type

SetAdapterUid(TUint32)

IMPORT_C voidSetAdapterUid(TUint32aUid)

Looks through the ddf tree and sets the adapter id to new static nodes

Parameters

TUint32 aUidAdapter id

SetAsObjectGroup()

voidSetAsObjectGroup()

Inherited from MSmlDmDDFObject, no use in this class

SetDFFormatL(TDFFormat)

voidSetDFFormatL(TDFFormataFormat)

Inherited from MSmlDmDDFObject, no use in this class

Parameters

TDFFormat aFormatFormat

SetDFTitleL(const TDesC8 &)

voidSetDFTitleL(const TDesC8 &aTitle)

Inherited from MSmlDmDDFObject, no use in this class

Parameters

const TDesC8 & aTitleTitle

SetDefaultValueL(const TDesC8 &)

voidSetDefaultValueL(const TDesC8 &aDefaultValue)

Inherited from MSmlDmDDFObject, no use in this class

Parameters

const TDesC8 & aDefaultValueDefault value

SetDescriptionL(const TDesC8 &)

voidSetDescriptionL(const TDesC8 &aDescription)

Inherited from MSmlDmDDFObject, no use in this class

Parameters

const TDesC8 & aDescriptionDescription

SetOccurenceL(TOccurence)

voidSetOccurenceL(TOccurenceaOccurence)

Inherited from MSmlDmDDFObject, no use in this class

Parameters

TOccurence aOccurenceOccurence

SetScopeL(TScope)

voidSetScopeL(TScopeaScope)

Inherited from MSmlDmDDFObject, no use in this class

Parameters

TScope aScopeScope

SetServerId(TUint8)

IMPORT_C voidSetServerId(TUint8aServerId)

Looks through the ddf tree and sets the session id to new static nodes

Parameters

TUint8 aServerIdId of the session to correct host server

SetServerIdToNewItems(CNSmlDmNodeList *, TUint8)

TBool SetServerIdToNewItems(CNSmlDmNodeList *aNodeListPtr,
TUint8aServerId
)[private]

Looks through the ddf tree and sets the session id to new static nodes

Parameters

CNSmlDmNodeList * aNodeListPtrAlgorythm is recursive and next level nodelist pointer is provided here
TUint8 aServerIdId of the session to correct host server

SetUidToNewItems(CNSmlDmNodeList *, TUint32)

TBool SetUidToNewItems(CNSmlDmNodeList *aNodeListPtr,
TUint32aUid
)[private]

Looks through the ddf tree and sets the adapter id to new static nodes

Parameters

CNSmlDmNodeList * aNodeListPtrAlgorythm is recursive and next level nodelist pointer is provided here
TUint32 aUidAdapter id

Member Data Documentation

CNSmlDmNodeList * iNodeListPtr

CNSmlDmNodeList *iNodeListPtr

Pointer to root node list pointer

CNSmlDmPcdata iVerDTD

CNSmlDmPcdata iVerDTD[private]

dtd version