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 & aNodeName Node name

AddDFTypeMimeTypeL(const TDesC8 &)

void AddDFTypeMimeTypeL ( const TDesC8 & aMimeType )

Inherited from MSmlDmDDFObject , no use in this class

Parameters

const TDesC8 & aMimeType Mime type

ConstructL()

void ConstructL ( ) [private]

Second phase constructor

FindLoadedAdaptersL(RArray< TUint32 > &, CNSmlDmNodeList *)

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

Finds the allrady loaded adapters

Parameters

RArray < TUint32 > & aLoadedAdapters Arrayf of found adapter ids
CNSmlDmNodeList * aNodeListPtr = NULL Algorythm is recursive and next level nodelist pointer is provided here

FindNameFromNodeListL(const TDesC8 &, CNSmlDmNodeList *&)

IMPORT_C TNSmlDmDDFFormat FindNameFromNodeListL ( const TDesC8 & aURI,
CNSmlDmNodeList *& aFinalPtr
)

Finds the node pointed by aURI from tree

Parameters

const TDesC8 & aURI Uri
CNSmlDmNodeList *& aFinalPtr Found pointer is written here

GenerateWBXMLL(RWriteStream &)

IMPORT_C void GenerateWBXMLL ( RWriteStream & aStream )

Generates wbxml of the whole DDF and writes it to aStream

Parameters

RWriteStream & aStream Reference to stream where to write generated wbxml

GenerateXMLL(CBufBase &)

IMPORT_C void GenerateXMLL ( CBufBase & aObject )

Generates xml of the whole DDF and writes it to aObject

Parameters

CBufBase & aObject Reference 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 void ParseWBXMLL ( 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 & aReader Reference to stream where to read wbxml

SetAccessTypesL(TSmlDmAccessTypes)

void SetAccessTypesL ( TSmlDmAccessTypes aAccessTypes )

Inherited from MSmlDmDDFObject , no use in this class

Parameters

TSmlDmAccessTypes aAccessTypes Access type

SetAdapterUid(TUint32)

IMPORT_C void SetAdapterUid ( TUint32 aUid )

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

Parameters

TUint32 aUid Adapter id

SetAsObjectGroup()

void SetAsObjectGroup ( )

Inherited from MSmlDmDDFObject , no use in this class

SetDFFormatL(TDFFormat)

void SetDFFormatL ( TDFFormat aFormat )

Inherited from MSmlDmDDFObject , no use in this class

Parameters

TDFFormat aFormat Format

SetDFTitleL(const TDesC8 &)

void SetDFTitleL ( const TDesC8 & aTitle )

Inherited from MSmlDmDDFObject , no use in this class

Parameters

const TDesC8 & aTitle Title

SetDefaultValueL(const TDesC8 &)

void SetDefaultValueL ( const TDesC8 & aDefaultValue )

Inherited from MSmlDmDDFObject , no use in this class

Parameters

const TDesC8 & aDefaultValue Default value

SetDescriptionL(const TDesC8 &)

void SetDescriptionL ( const TDesC8 & aDescription )

Inherited from MSmlDmDDFObject , no use in this class

Parameters

const TDesC8 & aDescription Description

SetOccurenceL(TOccurence)

void SetOccurenceL ( TOccurence aOccurence )

Inherited from MSmlDmDDFObject , no use in this class

Parameters

TOccurence aOccurence Occurence

SetScopeL(TScope)

void SetScopeL ( TScope aScope )

Inherited from MSmlDmDDFObject , no use in this class

Parameters

TScope aScope Scope

SetServerId(TUint8)

IMPORT_C void SetServerId ( TUint8 aServerId )

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

Parameters

TUint8 aServerId Id of the session to correct host server

SetServerIdToNewItems(CNSmlDmNodeList *, TUint8)

TBool SetServerIdToNewItems ( CNSmlDmNodeList * aNodeListPtr,
TUint8 aServerId
) [private]

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

Parameters

CNSmlDmNodeList * aNodeListPtr Algorythm is recursive and next level nodelist pointer is provided here
TUint8 aServerId Id of the session to correct host server

SetUidToNewItems(CNSmlDmNodeList *, TUint32)

TBool SetUidToNewItems ( CNSmlDmNodeList * aNodeListPtr,
TUint32 aUid
) [private]

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

Parameters

CNSmlDmNodeList * aNodeListPtr Algorythm is recursive and next level nodelist pointer is provided here
TUint32 aUid Adapter id

Member Data Documentation

CNSmlDmNodeList * iNodeListPtr

CNSmlDmNodeList * iNodeListPtr

Pointer to root node list pointer

CNSmlDmPcdata iVerDTD

CNSmlDmPcdata iVerDTD [private]

dtd version