CVCommandArray Class Reference

class CVCommandArray : public CBase

Non-modifiable list of VCommands

Inherits from

Constructor & Destructor Documentation

~CVCommandArray()

IMPORT_C~CVCommandArray()

Destructor

Member Functions Documentation

At(TInt)

IMPORT_C const CVCommand &At(TIntaIndex)const

Returns the reference to the command stored in this CVCommandArray

Parameters

TInt aIndexZero-based index of the command. If aIndex is out of bounds, this method will panic with USER 130

ConstructL(const RVCommandArray &)

voidConstructL(const RVCommandArray &aSource)[private]

Parameters

const RVCommandArray & aSource

Count()

IMPORT_C TIntCount()const

Returns the number of commands

NewL(const RVCommandArray &)

IMPORT_C CVCommandArray *NewL(const RVCommandArray &aSource)[static]

Constructs the non-modifiable CVCommandArray

Parameters

const RVCommandArray & aSourceCommands to store. CVCommandArray makes copies of them

PointerArray()

IMPORT_C const RVCommandArray &PointerArray()const

For the compatibility with routines, requiring RVCommandArray

ProduceTrainSetByRunnablesLC(const RVCommandArray &)

IMPORT_C CVCommandArray *ProduceTrainSetByRunnablesLC(const RVCommandArray &aUpdates)const

Figures out which commands have to trained (removed added to the system) if this command set is merged with aUpdates. Merging is performed on the basis of comapring the commands' Runnable component If runnables are equal, the commands are considered being equal. It is useful e.g. when figuring out what to (un)train after the language change

ProduceUntrainSetByRunnables

Parameters

const RVCommandArray & aUpdatesSet of commands to merge in.

ProduceUntrainSetByRunnablesLC(const RVCommandArray &)

IMPORT_C CVCommandArray *ProduceUntrainSetByRunnablesLC(const RVCommandArray &aUpdates)const

Figures out which commands have to untrained (removed from the system) if this command set is merged with aUpdates. Merging is performed on the basis of comapring the commands' Runnable component If runnables are equal, the commands are considered being equal. It is useful e.g. when figuring out what to (un)train after the language change

ProduceTrainSetByRunnablesFigures out which commands have to untrained (removed from VCommandHandler) if this command set is merged with aUpdates. Merging is performed on the basis of comapring the commands' Runnable component If runnables are equal, the commands are considered being equal. It is useful e.g. when figuring out what to (un)train after the language change

Parameters

const RVCommandArray & aUpdatesSet of commands to merge in.

operator[](TInt)

IMPORT_C const CVCommand &operator[](TIntaIndex)const

Equivalent to the operator At At()

Parameters

TInt aIndex

Member Data Documentation

RVCommandArray iCommands

RVCommandArray iCommands[private]