CVCCommandUi Class Reference

class CVCCommandUi : public CBase

Container for VC app specific "human-visible" parts of the voice command: tooltip, displayable text, folder, icon, etc

Inherits from

Constructor & Destructor Documentation

~CVCCommandUi()

IMPORT_C~CVCCommandUi()

Destructor

Member Functions Documentation

ConstructL(const TDesC &, const CVCFolderInfo &, TBool, const TDesC &, const TUid &, const TDesC &, TBool)

voidConstructL(const TDesC &aWrittenText,
const CVCFolderInfo &aFolderInfo,
TBoolaModifiable,
const TDesC &aTooltip,
const TUid &aIconUid,
const TDesC &aUserText,
TBoolaConfirmationNeeded
)[private]

Second-phase constructor NewL for guard conditionsSecond-phase constructor NewL for guarding conditions

Parameters

const TDesC & aWrittenText
const CVCFolderInfo & aFolderInfo
TBool aModifiable
const TDesC & aTooltip
const TUid & aIconUid
const TDesC & aUserText
TBool aConfirmationNeeded

ConstructL(RReadStream &)

voidConstructL(RReadStream &aStream)[private]

Parameters

RReadStream & aStream

EqualNonUserChangeableData(const CVCCommandUi &)

IMPORT_C TBoolEqualNonUserChangeableData(const CVCCommandUi &aCommandUi)const

Tells if all non user-changeable parts of aCommandUi are equal to this object's

Parameters

const CVCCommandUi & aCommandUi

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Saves the command to stream. Descriptor components are saved as <length><descriptor> pairs, where <length> is TInt32 and <descriptor> is the default descriptor represetation TBools are saved as TInt32 either

Parameters

RWriteStream & aStream

FolderInfo()

IMPORT_C const CVCFolderInfo &FolderInfo()const

IconLC()

IMPORT_C CGulIcon *IconLC()const

Creates the command icon. Takes into account the skin-specifics Works only if CEikonEnv is available

IconUid()

IMPORT_C const TUid &IconUid()const

Modifiable()

IMPORT_C TBoolModifiable()const

NewL(const TDesC &, const CVCFolderInfo &, TBool, const TDesC &, const TUid &, const TDesC &, TBool)

IMPORT_C CVCCommandUi *NewL(const TDesC &aWrittenText,
const CVCFolderInfo &aFolderInfo,
TBoolaModifiable,
const TDesC &aTooltip,
const TUid &aIconUid,
const TDesC &aUserText =  KNullDesC ,
TBoolaConfirmationNeeded = ETrue
)[static]

This object does not take an ownership of the passed descriptors, but makes own copies.

TodoAdd "see" reference to the recognition-side function that uses the "confirmation needed information" aModifiable param is "hanging in the air" and never actually used Clarify its existence and responsibilities This object does not take an ownership of the passed descriptors, but makes own copies.

leave
KErrOverflow if descriptors are too big

Parameters

const TDesC & aWrittenTextText to display
const CVCFolderInfo & aFolderInfoFolder-related details
TBool aModifiableIf user can modify the command
const TDesC & aTooltipSecond line of the text if ant
const TUid & aIconUid
const TDesC & aUserText =  KNullDesC Optional user-specified shortcut for the command
TBool aConfirmationNeeded = ETrueIf EFalse, when the command is recognized, it is immediately executed If ETrue, when the command is recognized, it is played back and user is asked to confirm the recognition results

NewL(RReadStream &)

IMPORT_C CVCCommandUi *NewL(RReadStream &aStream)[static]
Factory function that constructs a CVCCommandUi from the stream
leave
KErrNotSupported if the stream data format is unsupported e.g. if it has been written by newer implementation
Internalizes the command from stream values are read in the same order as ExternalizeL wrote them

Parameters

RReadStream & aStream

NewL(const CVCCommandUi &)

IMPORT_C CVCCommandUi *NewL(const CVCCommandUi &aOriginal)[static]

Copy the existing CVCCommandUi

Parameters

const CVCCommandUi & aOriginal

Tooltip()

IMPORT_C const TDesC &Tooltip()const

UserText()

IMPORT_C const TDesC &UserText()const

WrittenText()

IMPORT_C const TDesC &WrittenText()const

operator==(const CVCCommandUi &)

IMPORT_C TBooloperator==(const CVCCommandUi &aCommandUi)const

Parameters

const CVCCommandUi & aCommandUi

Member Data Documentation

TBool iConfirmationNeeded

TBool iConfirmationNeeded[private]

CVCFolderInfo * iFolderInfo

CVCFolderInfo *iFolderInfo[private]

TUid iIconUid

TUid iIconUid[private]

HBufC * iTooltip

HBufC *iTooltip[private]

TBool iUserCanModify

TBool iUserCanModify[private]

HBufC * iUserText

HBufC *iUserText[private]

HBufC * iWrittenText

HBufC *iWrittenText[private]