CEikCommandTable Class Reference

class CEikCommandTable : public CBase

Holds (enhanced) CBA commands and handles command ordering due to placement rules.

eikcoctl.lib S60 3.0

Inherits from

Constructor & Destructor Documentation

CEikCommandTable()

CEikCommandTable()[private]

Constructor.

~CEikCommandTable()

~CEikCommandTable()

Destructor.

Member Functions Documentation

AddCommandL(CEikEnhancedCbaButton *)

TInt AddCommandL(CEikEnhancedCbaButton *aButton)

Used to add a command to CommandTable.

KErrNone if addition was successful.

Parameters

CEikEnhancedCbaButton * aButtonThe button to be added.

Command(const TInt)

CEikEnhancedCbaButton *Command(const TIntaCommandIndex)

Used to get CEikEnhancedCbaButton for current control button (1-4).

CEikCbaButton for current position, NULL if no button placed in that position.

Parameters

const TInt aCommandIndexIndex for requested button, use enum TCommandTableCbaPositions.

ConstructL()

voidConstructL()[private]

Constructs command table with device button priorities.

IsCommandPlaced(const TInt)

TBool IsCommandPlaced(const TIntaCommandId)const

Used to check if command table has a button with a certain id.

ETrue if command is placed in the command table.

Parameters

const TInt aCommandIdThe id to be checked.

NewL()

CEikCommandTable *NewL()[static]

Constructs a new command table instance.

The new command table.

NewLC()

CEikCommandTable *NewLC()[static]

Constructs a new command table instance.

The new command table.

ReplaceCommandL(const TInt, const TInt)

voidReplaceCommandL(const TIntaCommandId,
const TIntaResourceId
)

Used to replace command with a new command.

Parameters

const TInt aCommandIdId for command that should be replaced.
const TInt aResourceIdId for new ENHANCED_CBA_BUTTON resource to be placed in the CommandTable.

Reset()

voidReset()

Reset CommandTable.

Member Data Documentation

TFixedArray< CEikEnhancedCbaButton *, KMaxButtonsInCommandTable > iCommandButtons

TFixedArray< CEikEnhancedCbaButton *, KMaxButtonsInCommandTable >iCommandButtons[private]

Displayed commands.

RArray< RArray< TInt > > iPriorities

RArray< RArray< TInt > >iPriorities[private]

Priority order for each button.