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 &)

void GetResultsL ( CBufBase *& aData,
CSmlDmAdapter::TError & aStatus
)

Gets the result

Parameters

CBufBase *& aData Reference to the data buffer, where to write result data
CSmlDmAdapter::TError & aStatus Reference 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)

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

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

Parameters

TInt aResultsRef Reference to result element
const CBufBase & aObject Data
const TDesC8 & aType Mime type
const TDesC8 & aFormat Format of the object
TInt aTotalSize Total size

SetStatusL(TInt, TInt)

void SetStatusL ( TInt aStatusRef,
TInt aStatusCode
)

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

Parameters

TInt aStatusRef Reference to result element
TInt aStatusCode Status of command

Member Data Documentation

CBufBase * iResults

CBufBase * iResults [private]

Result

TInt iStatus

TInt iStatus [private]

Status code