uiservicetab/vimpstui/src/cvimpstuisinglelistboxtabviewcontrol.cpp
branchRCL_3
changeset 27 2b7283837edb
parent 16 d20aea8a18b6
equal deleted inserted replaced
25:fda5a9396e07 27:2b7283837edb
    73 //
    73 //
    74 CVIMPSTUiSingleListBoxTabViewControl::CVIMPSTUiSingleListBoxTabViewControl(CVIMPSTUiTabbedView& aTabbedView, MPbk2KeyEventHandler* aKeyEventHandler,
    74 CVIMPSTUiSingleListBoxTabViewControl::CVIMPSTUiSingleListBoxTabViewControl(CVIMPSTUiTabbedView& aTabbedView, MPbk2KeyEventHandler* aKeyEventHandler,
    75 														MVIMPSTCmdHandler& aCommandHandler,
    75 														MVIMPSTCmdHandler& aCommandHandler,
    76 														TUint32 aServiceId,
    76 														TUint32 aServiceId,
    77 														CVIMPSTUiBrandData& aBrandHandler,
    77 														CVIMPSTUiBrandData& aBrandHandler,
    78 														MVIMPSTEngine& aEngine )
    78 														MVIMPSTEngine& aEngine,
       
    79 														CEikButtonGroupContainer* aCba)
    79 	:iTabbedView(aTabbedView),
    80 	:iTabbedView(aTabbedView),
    80 	 iKeyEventHandler(aKeyEventHandler),
    81 	 iKeyEventHandler(aKeyEventHandler),
    81 	 iCommandHandler(aCommandHandler),
    82 	 iCommandHandler(aCommandHandler),
    82 	 iArrayProcess(iCommandHandler.GetProcessInterface()),
    83 	 iArrayProcess(iCommandHandler.GetProcessInterface()),
    83 	 iServiceId(aServiceId),
    84 	 iServiceId(aServiceId),
    84 	 iBrandHandler(aBrandHandler),
    85 	 iBrandHandler(aBrandHandler),
    85 	 iEngine(aEngine)
    86 	 iEngine(aEngine),
       
    87 	 iCba(aCba)
    86     {
    88     {
    87 
    89 
    88     }
    90     }
    89 
    91 
    90 
    92 
   152 //
   154 //
   153 CVIMPSTUiSingleListBoxTabViewControl* CVIMPSTUiSingleListBoxTabViewControl::NewL
   155 CVIMPSTUiSingleListBoxTabViewControl* CVIMPSTUiSingleListBoxTabViewControl::NewL
   154         (CVIMPSTUiTabbedView& aTabbedView,MPbk2KeyEventHandler* aKeyEventHandler, 
   156         (CVIMPSTUiTabbedView& aTabbedView,MPbk2KeyEventHandler* aKeyEventHandler, 
   155         MVIMPSTCmdHandler& aCommandHandler, TUint32 aServiceId,
   157         MVIMPSTCmdHandler& aCommandHandler, TUint32 aServiceId,
   156         CVIMPSTUiBrandData& aBrandHandler,
   158         CVIMPSTUiBrandData& aBrandHandler,
   157         MVIMPSTEngine& aEngine)
   159         MVIMPSTEngine& aEngine,
       
   160         CEikButtonGroupContainer* aCba)
   158     {
   161     {
   159 	TRACER_AUTO;
   162 	TRACER_AUTO;
   160     CVIMPSTUiSingleListBoxTabViewControl* self = NewLC(aTabbedView,aKeyEventHandler,
   163     CVIMPSTUiSingleListBoxTabViewControl* self = NewLC(aTabbedView,aKeyEventHandler,
   161     			aCommandHandler, aServiceId, aBrandHandler,aEngine);
   164     			aCommandHandler, aServiceId, aBrandHandler,aEngine,aCba);
   162     CleanupStack::Pop(self);
   165     CleanupStack::Pop(self);
   163     return self;
   166     return self;
   164     }
   167     }
   165 
   168 
   166 
   169 
   170 //
   173 //
   171 CVIMPSTUiSingleListBoxTabViewControl* CVIMPSTUiSingleListBoxTabViewControl::NewLC
   174 CVIMPSTUiSingleListBoxTabViewControl* CVIMPSTUiSingleListBoxTabViewControl::NewLC
   172         (CVIMPSTUiTabbedView& aTabbedView,MPbk2KeyEventHandler* aKeyEventHandler,
   175         (CVIMPSTUiTabbedView& aTabbedView,MPbk2KeyEventHandler* aKeyEventHandler,
   173         MVIMPSTCmdHandler& aCommandHandler, TUint32 aServiceId,
   176         MVIMPSTCmdHandler& aCommandHandler, TUint32 aServiceId,
   174         CVIMPSTUiBrandData& aBrandHandler,
   177         CVIMPSTUiBrandData& aBrandHandler,
   175         MVIMPSTEngine& aEngine)
   178         MVIMPSTEngine& aEngine,
       
   179         CEikButtonGroupContainer* aCba)
   176     {
   180     {
   177 	TRACER_AUTO;
   181 	TRACER_AUTO;
   178     CVIMPSTUiSingleListBoxTabViewControl* self =
   182     CVIMPSTUiSingleListBoxTabViewControl* self =
   179         new (ELeave) CVIMPSTUiSingleListBoxTabViewControl(aTabbedView,aKeyEventHandler,
   183         new (ELeave) CVIMPSTUiSingleListBoxTabViewControl(aTabbedView,aKeyEventHandler,
   180         aCommandHandler, aServiceId, aBrandHandler,aEngine);
   184         aCommandHandler, aServiceId, aBrandHandler,aEngine,aCba);
   181     CleanupStack::PushL(self);
   185     CleanupStack::PushL(self);
   182     self->ConstructL();
   186     self->ConstructL();
   183     return self;
   187     return self;
   184     }
   188     }
   185 
   189 
  1024             }
  1028             }
  1025         
  1029         
  1026         TVIMPSTEnums::TItem itemtype = iArrayProcess.GetType(index);
  1030         TVIMPSTEnums::TItem itemtype = iArrayProcess.GetType(index);
  1027         TVIMPSTEnums::TVIMPSTRegistrationState servicestate = iEngine.ServiceState();
  1031         TVIMPSTEnums::TVIMPSTRegistrationState servicestate = iEngine.ServiceState();
  1028         TBool updateinvalid( iLastFocusedItemType == TVIMPSTEnums::EInvalid );
  1032         TBool updateinvalid( iLastFocusedItemType == TVIMPSTEnums::EInvalid );
  1029          if ( !iCba )
  1033 //         if ( !iCba )
  1030             {
  1034 //            {
  1031             iCba = CEikButtonGroupContainer::Current();
  1035 //            iCba = CEikButtonGroupContainer::Current();
  1032             }
  1036 //            }
  1033 
  1037 
  1034         // default softkeys
  1038         // default softkeys
  1035         if( aUseDefaultCba || updateinvalid )
  1039         if( aUseDefaultCba || updateinvalid )
  1036             {
  1040             {
  1037             if( aUseDefaultCba )
  1041             if( aUseDefaultCba )