CVCommandHandler Class Reference

class CVCommandHandler : public CBase

Provider of the voice command services

Inherits from

Constructor & Destructor Documentation

~CVCommandHandler()

IMPORT_C~CVCommandHandler()[virtual]

Member Functions Documentation

AddCommandL(const CVCommand &)

IMPORT_C voidAddCommandL(const CVCommand &aCommand)[virtual]

Synchronous. Service doesn't take the ownership, but makes an own copy Duplicates can be added Todoshould we check for duplicates and leave with KErrAlreadyExists?

Synchronous. Service doesn't take the ownership, but makes an own copy Duplicates can be added Todoshould we check for duplicates and leave with KErrAlreadyExists?

Parameters

const CVCommand & aCommand

AddCommandsL(const RVCommandArray &, TBool)

IMPORT_C voidAddCommandsL(const RVCommandArray &aCommands,
TBoolaIgnoreErrors = EFalse
)[virtual]

Synchronous. Service doesn't take the ownership, but makes an own copies Duplicates can be added Todoshould we check for duplicates and leave with KErrAlreadyExists? Synchronous. Service doesn't take the ownership, but makes an own copies Duplicates can be added Todoshould we check for duplicates and leave with KErrAlreadyExists?

Parameters

const RVCommandArray & aCommandsCommands to add
TBool aIgnoreErrors = EFalseIf ETrue, even if some commands fail to be trained, handler adds all that are trainable

CancelPlaybackL(const CStoredVCommand &)

voidCancelPlaybackL(const CStoredVCommand &aCommand)const [virtual]

Not intented to be called directly. CVCommand::CancelPlaybackL

Parameters

const CStoredVCommand & aCommand

ConstructL(MVCommandHandlerObserver *)

voidConstructL(MVCommandHandlerObserver *aObserver)[private]

Parameters

MVCommandHandlerObserver * aObserver

ListCommandsL()

IMPORT_C CVCommandArray *ListCommandsL()[virtual]

Synchronous

NewL(MVCommandHandlerObserver *)

IMPORT_C CVCommandHandler *NewL(MVCommandHandlerObserver *aObserver = NULL)[static]

Factory function

Parameters

MVCommandHandlerObserver * aObserver = NULLListener to be notified whenever the VCommand set is changed by *another* instance of CVCommandHandler. I.e. lets the client know if his understanding of the VCommand set is up to date

PlayAlternativeSpokenTextL(const CStoredVCommand &, MNssPlayEventHandler &)

voidPlayAlternativeSpokenTextL(const CStoredVCommand &aCommand,
MNssPlayEventHandler &aPlayEventHandler
)const [virtual]

Not intented to be called directly. CVCommand::PlayAlternativeSpokenTextL

Parameters

const CStoredVCommand & aCommand
MNssPlayEventHandler & aPlayEventHandler

PlaySpokenTextL(const CStoredVCommand &, MNssPlayEventHandler &)

voidPlaySpokenTextL(const CStoredVCommand &aCommand,
MNssPlayEventHandler &aPlayEventHandler
)const [virtual]

Not intented to be called directly. CVCommand::PlaySpokenTextL

Parameters

const CStoredVCommand & aCommand
MNssPlayEventHandler & aPlayEventHandler

RemoveCommandL(const CVCommand &)

IMPORT_C voidRemoveCommandL(const CVCommand &aCommand)[virtual]
Synchronous. Removes the command from the system
leave
KErrNotFound No such command

Parameters

const CVCommand & aCommandReference to the command to be removed. Existing commands are compared against aCommand. All the matches are removed from VAS

RemoveCommandsL(const RVCommandArray &, TBool)

IMPORT_C voidRemoveCommandsL(const RVCommandArray &aCommands,
TBoolaIgnoreErrors = EFalse
)[virtual]

Synchronous.

Parameters

const RVCommandArray & aCommandsReference to the list of commands to be removed. Existing commands are compared against aCommands items. All the matches are removed from VAS
TBool aIgnoreErrors = EFalseIf ETrue, even if some commands fail to be removed, handler will remove as many as possible

Member Data Documentation

MVCService * iImpl

MVCService *iImpl[private]