| class CEikCommandTable : public CBase |
Holds (enhanced) CBA commands and handles command ordering due to placement rules.
eikcoctl.lib S60 3.0
| Public Member Functions | |
|---|---|
| ~CEikCommandTable() | |
| TInt | AddCommandL(CEikEnhancedCbaButton *) |
| CEikEnhancedCbaButton * | Command(const TInt) |
| TBool | IsCommandPlaced(const TInt) |
| CEikCommandTable * | NewL() |
| CEikCommandTable * | NewLC() |
| void | ReplaceCommandL(const TInt, const TInt) |
| void | Reset() |
| Private Member Functions | |
|---|---|
| CEikCommandTable() | |
| void | ConstructL() |
| Private Attributes | |
|---|---|
| TFixedArray< CEikEnhancedCbaButton *, KMaxButtonsInCommandTable > | iCommandButtons |
| RArray< RArray< TInt > > | iPriorities |
| TInt | AddCommandL | ( | CEikEnhancedCbaButton * | aButton | ) |
Used to add a command to CommandTable.
KErrNone if addition was successful.
| CEikEnhancedCbaButton * aButton | The button to be added. |
| CEikEnhancedCbaButton * | Command | ( | const TInt | aCommandIndex | ) |
Used to get CEikEnhancedCbaButton for current control button (1-4).
CEikCbaButton for current position, NULL if no button placed in that position.
| const TInt aCommandIndex | Index for requested button, use enum TCommandTableCbaPositions. |
| TBool | IsCommandPlaced | ( | const TInt | aCommandId | ) | const |
Used to check if command table has a button with a certain id.
ETrue if command is placed in the command table.
| const TInt aCommandId | The id to be checked. |
| CEikCommandTable * | NewL | ( | ) | [static] |
Constructs a new command table instance.
The new command table.
| CEikCommandTable * | NewLC | ( | ) | [static] |
Constructs a new command table instance.
The new command table.
| void | ReplaceCommandL | ( | const TInt | aCommandId, |
| const TInt | aResourceId | |||
| ) | ||||
Used to replace command with a new command.
| TFixedArray< CEikEnhancedCbaButton *, KMaxButtonsInCommandTable > | iCommandButtons | [private] |
Displayed commands.