CUpnpCommand Class Reference

class CUpnpCommand : public CBase

UpnpCommand ECom plugin interface definition.

Inherits from

Constructor & Destructor Documentation

~CUpnpCommand()

~CUpnpCommand()[inline, virtual]

Destructor.

Member Functions Documentation

AllocateResourcesL()

voidAllocateResourcesL()[pure virtual]

Allocates the Upnp Framework resources.

DtorKeyOffset()

TInt32 DtorKeyOffset()[static, inline]

the DtorKey offset to pass in REComSession::CreateImplementationL

ExecuteL()

voidExecuteL()[pure virtual]

Executes the command. If Upnp Framework resources are not yet allocated, they are allocated.

File(TInt)

const TDesC &File(TIntaIndex)[pure virtual]

Returns a file in the file pipe

Parameters

TInt aIndexindex of the file in pipe

FileCount()

TInt FileCount()[pure virtual]

number of files in the file pipe

IsAvailableL()

TBool IsAvailableL()[pure virtual]

Checks if this command is available for execution.

IsAvailableL(UpnpCommand::TUpnpCommandId)

TBool IsAvailableL(UpnpCommand::TUpnpCommandIdaCommandId)[pure virtual]

Checks if given command is available for execution.

Parameters

UpnpCommand::TUpnpCommandId aCommandId(UpnpCommand::TUpnpCommandId) the command ID

Parameter(UpnpCommand::TUpnpParameterType)

const TDesC &Parameter(UpnpCommand::TUpnpParameterTypeaParamType)[pure virtual]

Returns a parameter, either set by client or returned as an out parameter after command execution

Parameters

UpnpCommand::TUpnpParameterType aParamType(UpnpCommand::TUpnpParameterType)

PushFileL(const TDesC &)

voidPushFileL(const TDesC &aParam)[pure virtual]

Pushes one file into the file pipe.

Parameters

const TDesC & aParam

ReleaseResources()

voidReleaseResources()[pure virtual]

Releases the Upnp Framework resources. Stops command execution if it is ongoing.

ResetFiles()

voidResetFiles()[pure virtual]

Resets files in the file pipe

ResetParameters()

voidResetParameters()[pure virtual]

Resets all parameter values

SetCommandIdL(UpnpCommand::TUpnpCommandId)

voidSetCommandIdL(UpnpCommand::TUpnpCommandIdaCommandId)[pure virtual]

Sets the command identity.

Parameters

UpnpCommand::TUpnpCommandId aCommandId(UpnpCommand::TUpnpCommandId) the command ID

SetObserver(MUpnpCommandCallback *)

voidSetObserver(MUpnpCommandCallback *aCallback)[pure virtual]

Sets the observer.

Parameters

MUpnpCommandCallback * aCallbackThe callback interface

SetParameterL(UpnpCommand::TUpnpParameterType, const TDesC &)

voidSetParameterL(UpnpCommand::TUpnpParameterTypeaParamType,
const TDesC &aParamValue
)[pure virtual]

Sets a parameter.

Leaves if the given param type or value is not valid.

Parameters

UpnpCommand::TUpnpParameterType aParamTypeparameter category
const TDesC & aParamValue(const TDesC&) parameter value

State()

UpnpCommand::TUpnpCommandState State()[pure virtual]

Returns the state of the command

Member Data Documentation

TUid iDtor_ID_Key

TUid iDtor_ID_Key[private]

ECom instance identifier key.