Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <smldmadapter.h>
This item is not part of the S60 5th Edition SDK

Class MSmlDmAdapterExtExecCorrelator

class MSmlDmAdapterExtExecCorrelator;

Description

This class is used when an an adapter needs to support the use an Exec command that uses a correlator.

Members

Defined in MSmlDmAdapterExtExecCorrelator:


Member functions


Release()

virtual void Release()=0;

Description

Releases the instance of this interface extension. This must be called when the interface extension is no longer needed.


ExecuteCommandL(const TDesC8 &,const TDesC8 &,const TDesC8 &,const TDesC8 &,const TDesC8 &,TInt)

virtual void ExecuteCommandL(const TDesC8 &aURI, const TDesC8 &aLUID, const TDesC8 &aCorrelator, const TDesC8 &aArgument, const TDesC8 &aType, TInt aStatusRef)=0;

Description

The function implements execute command with a correlator. The information about the success of the command should be returned by calling SetStatusL function of MSmlDmCallback callback interface. This makes it possible to buffer the commands. However, all the status codes for buffered commands must be returned at the latest when the CompleteOutstandingCmdsL() of adapter is called.

Parameters

const TDesC8 &aURI

URI of the command

const TDesC8 &aLUID

LUID of the object (if the adapter have earlier returned LUID to the DM Module).

const TDesC8 &aCorrelator

Correlator value sent by the DM Server

const TDesC8 &aArgument

Argument for the command

const TDesC8 &aType

MIME type of the object

TInt aStatusRef

Reference to correct command, i.e. this reference must be used when calling the SetStatusL of this command.


ExecuteCommandL(const TDesC8 &,const TDesC8 &,const TDesC8 &,RWriteStream *&,const TDesC8 &,TInt)

virtual void ExecuteCommandL(const TDesC8 &aURI, const TDesC8 &aLUID, const TDesC8 &aCorrelator, RWriteStream *&aStream, const TDesC8 &aType, TInt aStatusRef)=0;

Description

The function implements execute command with a correlator. The information about the success of the command should be returned by calling SetStatusL function of MSmlDmCallback callback interface. This makes it possible to buffer the commands. However, all the status codes for buffered commands must be returned at the latest when the CompleteOutstandingCmdsL() of the adapter is called.

Parameters

const TDesC8 &aURI

URI of the command

const TDesC8 &aLUID

LUID of the object (if the adapter have earlier returned LUID to the DM Module).

const TDesC8 &aCorrelator

RWriteStream *&aStream

Argument for the command. Adapter should create write stream and return, when data is written to stream by DM agent, StreamCommittedL() is called by DM engine

const TDesC8 &aType

MIME type of the object

TInt aStatusRef

Reference to correct command, i.e. this reference must be used when calling the SetStatusL of this command.