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.

Public Member Functions
TInt GetNewCommand(TInt32, TInt, TInt &)
TInt GetOldCommand(TInt32, TInt, TInt &)
Protected Member Functions
~MIMCVCommandMapper()

Constructor & Destructor Documentation

~MIMCVCommandMapper()

~MIMCVCommandMapper()[protected, inline, virtual]

Destructor.

Member Functions Documentation

GetNewCommand(TInt32, TInt, TInt &)

TInt GetNewCommand(TInt32aPluginId,
TIntaOldCommand,
TInt &aNewCommand
)const [pure virtual]

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

Parameters

TInt32 aPluginIdimplementation ID for identification
TInt aOldCommandOld/original command ID
TInt & aNewCommandOn return new mapped command ID

GetOldCommand(TInt32, TInt, TInt &)

TInt GetOldCommand(TInt32aPluginId,
TIntaNewCommand,
TInt &aOldCommand
)const [pure virtual]

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

Parameters

TInt32 aPluginIdimplementation ID for identification
TInt aNewCommandNew mapped command ID
TInt & aOldCommandOn return old/original command ID