MVCService Class Reference

class MVCService

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

Public Member Functions
~MVCService ()
void AddCommandL (const CVCommand &)
void AddCommandsL (const RVCommandArray &, TBool )
void CancelPlaybackL (const CStoredVCommand &)
CVCommandArray * ListCommandsL ()
void PlayAlternativeSpokenTextL (const CStoredVCommand &, MNssPlayEventHandler &)
void PlaySpokenTextL (const CStoredVCommand &, MNssPlayEventHandler &)
void RemoveCommandL (const CVCommand &)
void RemoveCommandsL (const RVCommandArray &, TBool )

Constructor & Destructor Documentation

~MVCService()

~MVCService ( ) [inline, virtual]

Member Functions Documentation

AddCommandL(const CVCommand &)

void AddCommandL ( 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)

void AddCommandsL ( const RVCommandArray & aCommands,
TBool aIgnoreErrors = 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 = EFalse If ETrue, even if some commands fail to be trained, handler adds all that are trainable

CancelPlaybackL(const CStoredVCommand &)

void CancelPlaybackL ( 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 &)

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

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

Parameters

const CStoredVCommand & aCommand
MNssPlayEventHandler & aPlayEventHandler

PlaySpokenTextL(const CStoredVCommand &, MNssPlayEventHandler &)

void PlaySpokenTextL ( 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 &)

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

Parameters

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

RemoveCommandsL(const RVCommandArray &, TBool)

void RemoveCommandsL ( const RVCommandArray & aCommands,
TBool aIgnoreErrors = EFalse
) [pure virtual]

Synchronous.

Parameters

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