MIMCVCommandMapper Class Reference

class MIMCVCommandMapper

Abstract interface for getting mapped command IDs. Command ID mapping means that xSP's own "Names List" command IDs ( constants that are usually defined in a *.hrh file ) are substituted with IDs provided by Extension Manager. This is needed because there may be extensions using same "Names List" command IDs. After the substitution, the original IDs are not valid anymore. Still, in order to allow original "Names List" command IDs usage inside the xSP's own code, MxSPCommandMapper provides the mechanism for retrieving new IDs which correspond to the old original ones and vice versa.

Constructor & Destructor Documentation

~MIMCVCommandMapper()

~MIMCVCommandMapper ( ) [protected, inline, virtual]

Destructor.

Member Functions Documentation

GetNewCommand(TInt32, TInt, TInt &)

TInt GetNewCommand ( TInt32 aPluginId,
TInt aOldCommand,
TInt & aNewCommand
) const [pure virtual]

Gets new mapped command ID which corresponds to the given old one

Parameters

TInt32 aPluginId implementation ID for identification
TInt aOldCommand Old/original command ID
TInt & aNewCommand On return new mapped command ID

GetOldCommand(TInt32, TInt, TInt &)

TInt GetOldCommand ( TInt32 aPluginId,
TInt aNewCommand,
TInt & aOldCommand
) const [pure virtual]

Gets old original command ID which corresponds to the given new one

Parameters

TInt32 aPluginId implementation ID for identification
TInt aNewCommand New mapped command ID
TInt & aOldCommand On return old/original command ID