S60 3rd Edition API Reference: CEikCommandTable Class Reference

CEikCommandTable Class Reference

API published in: S60 1st Ed

Link against: eikcoctl.lib avkon.lib

Capability Information

Required Capabilities

None


#include <eikcba.h>

Detailed Description

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

Public Member Functions

 ~CEikCommandTable ()
TInt AddCommandL (CEikEnhancedCbaButton *aButton)
 Used to add a command to CommandTable.
TBool IsCommandPlaced (const TInt aCommandId) const
 Used to check if command table has a button with a certain id.
void ReplaceCommandL (const TInt aCommandId, const TInt aResourceId)
 Used to replace command with a new command.
CEikEnhancedCbaButtonCommand (const TInt aCommandIndex)
 Used to get CEikEnhancedCbaButton for current control button (1-4).
void Reset ()
 Reset CommandTable.

Static Public Member Functions

static CEikCommandTableNewL ()
 construction and destruction
static CEikCommandTableNewLC ()

Constructor & Destructor Documentation

CEikCommandTable::~CEikCommandTable  ) 
 

Member Function Documentation

TInt CEikCommandTable::AddCommandL CEikEnhancedCbaButton aButton  ) 
 

Used to add a command to CommandTable.

Parameters:
aButton button to be added
Returns:
TInt return KErrNone if addition was successful
CEikEnhancedCbaButton* CEikCommandTable::Command const TInt  aCommandIndex  ) 
 

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

Parameters:
aCommandIndex Index for requested button, use enum TCommandTableCbaPositions
Returns:
CEikCbaButton for current position, NULL if no button placed in that position
TBool CEikCommandTable::IsCommandPlaced const TInt  aCommandId  )  const
 

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

Parameters:
aCommandId id to be checked
Returns:
TBool ETrue if command is placed in the command table
static CEikCommandTable* CEikCommandTable::NewL  )  [static]
 

construction and destruction

static CEikCommandTable* CEikCommandTable::NewLC  )  [static]
 
void CEikCommandTable::ReplaceCommandL const TInt  aCommandId,
const TInt  aResourceId
 

Used to replace command with a new command.

Parameters:
aCommandId Id for command that should be replaced
aResourceId Id for new ENHANCED_CBA_BUTTON resource to be placed in the CommandTable
void CEikCommandTable::Reset  ) 
 

Reset CommandTable.


The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2007
Back to top