CNSmlDmCommandBuffer Class Reference

class CNSmlDmCommandBuffer : public CBase

Class for handling bufered commands inside the atomic

Since

Inherits from

  • CNSmlDmCommandBuffer

Constructor & Destructor Documentation

CNSmlDmCommandBuffer(CNSmlDmModule &)

CNSmlDmCommandBuffer(CNSmlDmModule &aDmModule)[private]

Constructor

Parameters

CNSmlDmModule & aDmModuleReference to caller

~CNSmlDmCommandBuffer()

~CNSmlDmCommandBuffer()[virtual]

Destructor

Member Functions Documentation

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

voidAddObjectL(const TDesC8 &aURI,
const TDesC8 &aObject,
const TDesC8 &aType,
TIntaStatusRef
)

Add operation in DM protocoll for buffering

Parameters

const TDesC8 & aURITarget URI in command
const TDesC8 & aObjectData
const TDesC8 & aTypeMime type
TInt aStatusRefReference to status element

AtomicFailed()

TBool AtomicFailed()[private]

Atomic failure checking

ChangeAtomicStatuses()

voidChangeAtomicStatuses()[private]

Change statuses to correct atomic statuses.

CheckResultsRef(TInt)

TBool CheckResultsRef(TIntaResultsRef)

Check if this command has came inside atomic

Parameters

TInt aResultsRef

CheckStatusRef(TInt)

TBool CheckStatusRef(TIntaStatusRef)

Check if this command has came inside atomic

Parameters

TInt aStatusRefReference to status element

CommitL(CNSmlDmDDF &)

voidCommitL(CNSmlDmDDF &aDDF)

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

Parameters

CNSmlDmDDF & aDDFReference to DDF module

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

voidCopyObjectL(const TDesC8 &aTargetURI,
const TDesC8 &aSourceURI,
const TDesC8 &aType,
TIntaStatusRef
)

Copy operation in DM protocoll for buffering

Parameters

const TDesC8 & aTargetURITarget URI in command
const TDesC8 & aSourceURISource URI in command
const TDesC8 & aTypeMime type
TInt aStatusRefReference to status element

DeleteObjectL(const TDesC8 &, TInt)

voidDeleteObjectL(const TDesC8 &aURI,
TIntaStatusRef
)

Delete operation in DM protocoll for buffering

Parameters

const TDesC8 & aURITarget URI in command
TInt aStatusRefReference to status element

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

voidExecuteObjectL(const TDesC8 &aURI,
const TDesC8 &aObject,
const TDesC8 &aType,
TIntaStatusRef
)

Execute operation in DM protocoll for buffering

Parameters

const TDesC8 & aURITarget URI in command
const TDesC8 & aObjectData
const TDesC8 & aTypeMime type
TInt aStatusRefReference to status element

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

voidFetchObjectL(const TDesC8 &aURI,
const TDesC8 &aType,
TIntaResultsRef,
TIntaStatusRef
)

Get operation in DM protocoll for buffering

Parameters

const TDesC8 & aURITarget URI in command
const TDesC8 & aTypeMime type
TInt aResultsRefReference to result element
TInt aStatusRefReference 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 & aURIURI of the node

RollBackL(CNSmlDmDDF &)

voidRollBackL(CNSmlDmDDF &aDDF)

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

Parameters

CNSmlDmDDF & aDDFReference to DDF module

SendStatusAndResultCodesL()

voidSendStatusAndResultCodesL()[private]

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

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

voidSetResultsL(TIntaResultsRef,
const CBufBase &aObject,
const TDesC8 &aType,
const TDesC8 &aFormat
)

Sets the result of command pointed by aResultRef

Parameters

TInt aResultsRef
const CBufBase & aObjectResult data to be set
const TDesC8 & aTypeMime type of the object
const TDesC8 & aFormatFormat of the node

SetStatus(TInt, TInt)

voidSetStatus(TIntaStatusRef,
TIntaStatusCode
)

Sets the status of command pointed by aStatusRef

Parameters

TInt aStatusRefReference to status element
TInt aStatusCodeStatus code to be set

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

voidUpdateObjectL(const TDesC8 &aURI,
const TDesC8 &aObject,
const TDesC8 &aType,
TIntaStatusRef
)

Replace operation in DM protocoll for buffering

Parameters

const TDesC8 & aURITarget URI in command
const TDesC8 & aObjectData
const TDesC8 & aTypeMime type
TInt aStatusRefReference to status element or not

Member Data Documentation

TBool iAtomicFailed

TBool iAtomicFailed[private]

CNSmlDmCommands * iCommandBuffer

CNSmlDmCommands *iCommandBuffer[private]

CNSmlDmModule & iDmModule

CNSmlDmModule &iDmModule[private]