CNSmlDmLinkCallback Class Reference

class CNSmlDmLinkCallback : public CBase

Class for overwriting the callback interface to caller. In case of internal commands, the caller (agent) is not called, this module is called instead

Since

Inherits from

Constructor & Destructor Documentation

CNSmlDmLinkCallback()

CNSmlDmLinkCallback()[private]

Constructor

~CNSmlDmLinkCallback()

~CNSmlDmLinkCallback()[virtual]

Destructor

Member Functions Documentation

GetResultsL(CBufBase *&, CSmlDmAdapter::TError &)

voidGetResultsL(CBufBase *&aData,
CSmlDmAdapter::TError &aStatus
)

Gets the result

Parameters

CBufBase *& aDataReference to the data buffer, where to write result data
CSmlDmAdapter::TError & aStatusReference to status info wher to write the status of command execution

GetStatusL()

TInt GetStatusL()

Gets the status

NewL()

CNSmlDmLinkCallback *NewL()[static]

Two-phased constructor.

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

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

The class is used in internal commands to overwrite the normal callback interface. This methos overwrites the normal SetResultsL function

Parameters

TInt aResultsRefReference to result element
const CBufBase & aObjectData
const TDesC8 & aTypeMime type
const TDesC8 & aFormatFormat of the object
TInt aTotalSizeTotal size

SetStatusL(TInt, TInt)

voidSetStatusL(TIntaStatusRef,
TIntaStatusCode
)

The class is used in internal commands to overwrite the normal callback interface. This methos overwrites the normal SetStatuslL function

Parameters

TInt aStatusRefReference to result element
TInt aStatusCodeStatus of command

Member Data Documentation

CBufBase * iResults

CBufBase *iResults[private]

Result

TInt iStatus

TInt iStatus[private]

Status code