CNSmlDmCommandBuffer Class Reference

class CNSmlDmCommandBuffer : public CBase

Class for handling bufered commands inside the atomic

Since

Inherits from

Constructor & Destructor Documentation

CNSmlDmCommandBuffer(CNSmlDmModule &)

CNSmlDmCommandBuffer ( CNSmlDmModule & aDmModule ) [private]

Constructor

Parameters

CNSmlDmModule & aDmModule Reference to caller

~CNSmlDmCommandBuffer()

~CNSmlDmCommandBuffer ( ) [virtual]

Destructor

Member Functions Documentation

AddObjectL(const TDesC8 &, const TDesC8 &, const TDesC8 &, TInt)

void AddObjectL ( const TDesC8 & aURI,
const TDesC8 & aObject,
const TDesC8 & aType,
TInt aStatusRef
)

Add operation in DM protocoll for buffering

Parameters

const TDesC8 & aURI Target URI in command
const TDesC8 & aObject Data
const TDesC8 & aType Mime type
TInt aStatusRef Reference to status element

AtomicFailed()

TBool AtomicFailed ( ) [private]

Atomic failure checking

ChangeAtomicStatuses()

void ChangeAtomicStatuses ( ) [private]

Change statuses to correct atomic statuses.

CheckResultsRef(TInt)

TBool CheckResultsRef ( TInt aResultsRef )

Check if this command has came inside atomic

Parameters

TInt aResultsRef

CheckStatusRef(TInt)

TBool CheckStatusRef ( TInt aStatusRef )

Check if this command has came inside atomic

Parameters

TInt aStatusRef Reference to status element

CommitL(CNSmlDmDDF &)

void CommitL ( CNSmlDmDDF & aDDF )

Commits the atomic, i.e. executed the commands in the buffer

Parameters

CNSmlDmDDF & aDDF Reference to DDF module

CopyObjectL(const TDesC8 &, const TDesC8 &, const TDesC8 &, TInt)

void CopyObjectL ( const TDesC8 & aTargetURI,
const TDesC8 & aSourceURI,
const TDesC8 & aType,
TInt aStatusRef
)

Copy operation in DM protocoll for buffering

Parameters

const TDesC8 & aTargetURI Target URI in command
const TDesC8 & aSourceURI Source URI in command
const TDesC8 & aType Mime type
TInt aStatusRef Reference to status element

DeleteObjectL(const TDesC8 &, TInt)

void DeleteObjectL ( const TDesC8 & aURI,
TInt aStatusRef
)

Delete operation in DM protocoll for buffering

Parameters

const TDesC8 & aURI Target URI in command
TInt aStatusRef Reference to status element

ExecuteObjectL(const TDesC8 &, const TDesC8 &, const TDesC8 &, TInt)

void ExecuteObjectL ( const TDesC8 & aURI,
const TDesC8 & aObject,
const TDesC8 & aType,
TInt aStatusRef
)

Execute operation in DM protocoll for buffering

Parameters

const TDesC8 & aURI Target URI in command
const TDesC8 & aObject Data
const TDesC8 & aType Mime type
TInt aStatusRef Reference to status element

FetchObjectL(const TDesC8 &, const TDesC8 &, TInt, TInt)

void FetchObjectL ( const TDesC8 & aURI,
const TDesC8 & aType,
TInt aResultsRef,
TInt aStatusRef
)

Get operation in DM protocoll for buffering

Parameters

const TDesC8 & aURI Target URI in command
const TDesC8 & aType Mime type
TInt aResultsRef Reference to result element
TInt aStatusRef Reference to status element

IsGetWithAtomic()

TBool IsGetWithAtomic ( )

check whether the atomic command is with Get

NewL(CNSmlDmModule &)

CNSmlDmCommandBuffer * NewL ( CNSmlDmModule & aDmModule ) [static]

Two-phased constructor.

Parameters

CNSmlDmModule & aDmModule

ParentNodeDeletedL(const TDesC8 &)

TBool ParentNodeDeletedL ( const TDesC8 & aURI ) [private]

Check if parent node is deleted because of failure in atomic

Parameters

const TDesC8 & aURI URI of the node

RollBackL(CNSmlDmDDF &)

void RollBackL ( CNSmlDmDDF & aDDF )

Rollbacks the atomic, i.e. rollbacks the commands in the buffer

Parameters

CNSmlDmDDF & aDDF Reference to DDF module

SendStatusAndResultCodesL()

void SendStatusAndResultCodesL ( ) [private]

Sends the statuses and results to caller from the command buffer.

SetResultsL(TInt, const CBufBase &, const TDesC8 &, const TDesC8 &)

void SetResultsL ( TInt aResultsRef,
const CBufBase & aObject,
const TDesC8 & aType,
const TDesC8 & aFormat
)

Sets the result of command pointed by aResultRef

Parameters

TInt aResultsRef
const CBufBase & aObject Result data to be set
const TDesC8 & aType Mime type of the object
const TDesC8 & aFormat Format of the node

SetStatus(TInt, TInt)

void SetStatus ( TInt aStatusRef,
TInt aStatusCode
)

Sets the status of command pointed by aStatusRef

Parameters

TInt aStatusRef Reference to status element
TInt aStatusCode Status code to be set

UpdateObjectL(const TDesC8 &, const TDesC8 &, const TDesC8 &, TInt)

void UpdateObjectL ( const TDesC8 & aURI,
const TDesC8 & aObject,
const TDesC8 & aType,
TInt aStatusRef
)

Replace operation in DM protocoll for buffering

Parameters

const TDesC8 & aURI Target URI in command
const TDesC8 & aObject Data
const TDesC8 & aType Mime type
TInt aStatusRef Reference to status element or not

Member Data Documentation

TBool iAtomicFailed

TBool iAtomicFailed [private]

CNSmlDmCommands * iCommandBuffer

CNSmlDmCommands * iCommandBuffer [private]

CNSmlDmModule & iDmModule

CNSmlDmModule & iDmModule [private]