CNSmlDmCommandBuffer Class Reference
class CNSmlDmCommandBuffer : public CBase |
Class for handling bufered commands inside the atomic
Public Member Functions |
---|
| ~CNSmlDmCommandBuffer() |
void | AddObjectL(const TDesC8 &, const TDesC8 &, const TDesC8 &, TInt) |
TBool
| CheckResultsRef(TInt) |
TBool
| CheckStatusRef(TInt) |
void | CommitL(CNSmlDmDDF &) |
void | CopyObjectL(const TDesC8 &, const TDesC8 &, const TDesC8 &, TInt) |
void | DeleteObjectL(const TDesC8 &, TInt) |
void | ExecuteObjectL(const TDesC8 &, const TDesC8 &, const TDesC8 &, TInt) |
void | FetchObjectL(const TDesC8 &, const TDesC8 &, TInt, TInt) |
TBool
| IsGetWithAtomic() |
CNSmlDmCommandBuffer * | NewL(CNSmlDmModule &) |
void | RollBackL(CNSmlDmDDF &) |
void | SetResultsL(TInt, const CBufBase &, const TDesC8 &, const TDesC8 &) |
void | SetStatus(TInt, TInt) |
void | UpdateObjectL(const TDesC8 &, const TDesC8 &, const TDesC8 &, TInt) |
Constructor & Destructor Documentation
CNSmlDmCommandBuffer(CNSmlDmModule &)
~CNSmlDmCommandBuffer()
~CNSmlDmCommandBuffer | ( | ) | [virtual] |
Member Functions Documentation
AddObjectL(const TDesC8 &, const TDesC8 &, const TDesC8 &, TInt)
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] |
ChangeAtomicStatuses()
void | ChangeAtomicStatuses | ( | ) | [private] |
Change statuses to correct atomic statuses.
CheckResultsRef(TInt)
Check if this command has came inside atomic
CheckStatusRef(TInt)
Check if this command has came inside atomic
Parameters
TInt aStatusRef | Reference to status element |
CommitL(CNSmlDmDDF &)
Commits the atomic, i.e. executed the commands in the buffer
CopyObjectL(const TDesC8 &, const TDesC8 &, const TDesC8 &, TInt)
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)
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)
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()
check whether the atomic command is with Get
ParentNodeDeletedL(const TDesC8 &)
Check if parent node is deleted because of failure in atomic
Parameters
const TDesC8 & aURI | URI of the node |
RollBackL(CNSmlDmDDF &)
Rollbacks the atomic, i.e. rollbacks the commands in the buffer
SendStatusAndResultCodesL()
void | SendStatusAndResultCodesL | ( | ) | [private] |
Sends the statuses and results to caller from the command buffer.
SetResultsL(TInt, const CBufBase &, const TDesC8 &, const TDesC8 &)
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)
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
CNSmlDmModule & iDmModule
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.