diff -r cfea66083b62 -r baacf668fe89 phoneapp/phoneuiqtviewadapter/inc/phoneuicommandcontroller.h --- a/phoneapp/phoneuiqtviewadapter/inc/phoneuicommandcontroller.h Mon Oct 04 16:06:10 2010 +0300 +++ b/phoneapp/phoneuiqtviewadapter/inc/phoneuicommandcontroller.h Fri Oct 15 12:58:46 2010 +0300 @@ -24,7 +24,6 @@ #include #include "phonecommandextensionwrapper.h" #include "phoneuiqtviewif.h" -#include "phoneaction.h" // FORWARD DECLARATION class HbAction; @@ -71,7 +70,7 @@ Returns push button actions for call. */ - QMap pushButtonActionsForCall( + QList pushButtonActionsForCall( int callState, bool emergencyCall, QMap callStates, @@ -85,7 +84,7 @@ Returns tool bar actions for call. */ - QList toolBarActions( + QList toolBarActions( int resourceId, QMap callStates, QMap serviceIds, @@ -116,7 +115,7 @@ Maps ui command extension commands to phone app commands. */ - int mapCommand(int command) const; + int mapCommand(int extensionCommand) const; /*! \fn void commandExtension() @@ -193,27 +192,7 @@ and held calls exists). */ void setMultiCallFlag(QList callStates) const; - - /*! - \fn void mapToExtensionToolBarItems() - - Maps phone action tool bar item list to ui command extension - tool bar item list. - */ - void mapToExtensionToolBarItems( - const QList &sourceList, - QList &toolBarCmdList) const; - - /*! - \fn void mapToPhoneActionToolBarItems() - - Maps ui command extension tool bar item list to phone action - tool bar item list. - */ - void mapToPhoneActionToolBarItems( - const QList &sourceList, - QList &commandList) const; - + /*! \fn void buttonCommandList() @@ -224,12 +203,13 @@ QList callStates) const; /*! - \fn void mapCommandToAction() + \fn HbAction *createAction(int extensionCommand, bool enabled) + + Converts given extension command id to HbAction. - Maps push button command to phone action. - */ - PhoneAction *mapCommandToAction(int command, - bool disabled=false) const; + Returns action. + */ + HbAction *createAction(int extensionCommand, bool enabled = true) const; /*! \fn void emergencyCall()