MVCService Class Reference

class MVCService

Interface for storing, listing and removing voice commands to/from VAS

Constructor & Destructor Documentation

~MVCService()

~MVCService()[inline, virtual]

Member Functions Documentation

AddCommandL(const CVCommand &)

voidAddCommandL(const CVCommand &aCommand)[pure 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?

Parameters

const CVCommand & aCommand

AddCommandsL(const RVCommandArray &, TBool)

voidAddCommandsL(const RVCommandArray &aCommands,
TBoolaIgnoreErrors = EFalse
)[pure 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?

Parameters

const RVCommandArray & aCommands
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)[pure virtual]

This method is not intended to be called directly. Use CVCommand::CancelPlaybackL instead CVCommand::CancelPlaybackL CStoredVCommand::CancelPlaybackL

Parameters

const CStoredVCommand & aCommand

ListCommandsL()

CVCommandArray *ListCommandsL()[pure virtual]

Synchronous

PlayAlternativeSpokenTextL(const CStoredVCommand &, MNssPlayEventHandler &)

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

Parameters

const CStoredVCommand & aCommand
MNssPlayEventHandler & aPlayEventHandler

PlaySpokenTextL(const CStoredVCommand &, MNssPlayEventHandler &)

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

This method is not intended to be called directly. Use CVCommand::PlaySpokenTextL instead CVCommand::PlaySpokenTextL CStoredVCommand::PlaySpokenTextL

Parameters

const CStoredVCommand & aCommand
MNssPlayEventHandler & aPlayEventHandler

RemoveCommandL(const CVCommand &)

voidRemoveCommandL(const CVCommand &aCommand)[pure 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)

voidRemoveCommandsL(const RVCommandArray &aCommands,
TBoolaIgnoreErrors = EFalse
)[pure 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