uiservicetab/vimpstui/src/cvimpstuidoublelistboxtabviewcontrol.cpp
branchRCL_3
changeset 27 2b7283837edb
parent 16 d20aea8a18b6
equal deleted inserted replaced
25:fda5a9396e07 27:2b7283837edb
    65 //
    65 //
    66 CVIMPSTUiDoubleListBoxTabViewControl::CVIMPSTUiDoubleListBoxTabViewControl(CVIMPSTUiTabbedView& aTabbedView, MPbk2KeyEventHandler* aKeyEventHandler,
    66 CVIMPSTUiDoubleListBoxTabViewControl::CVIMPSTUiDoubleListBoxTabViewControl(CVIMPSTUiTabbedView& aTabbedView, MPbk2KeyEventHandler* aKeyEventHandler,
    67 														MVIMPSTCmdHandler& aCommandHandler,
    67 														MVIMPSTCmdHandler& aCommandHandler,
    68 														TUint32 aServiceId,
    68 														TUint32 aServiceId,
    69 														CVIMPSTUiBrandData& aBrandHandler,
    69 														CVIMPSTUiBrandData& aBrandHandler,
    70 														MVIMPSTEngine& aEngine )
    70 														MVIMPSTEngine& aEngine,
       
    71 														CEikButtonGroupContainer* aCba)
    71 	:iTabbedView(aTabbedView),
    72 	:iTabbedView(aTabbedView),
    72 	 iKeyEventHandler(aKeyEventHandler),
    73 	 iKeyEventHandler(aKeyEventHandler),
    73 	 iCommandHandler(aCommandHandler),
    74 	 iCommandHandler(aCommandHandler),
    74 	 iArrayProcess(iCommandHandler.GetProcessInterface()),
    75 	 iArrayProcess(iCommandHandler.GetProcessInterface()),
    75 	 iServiceId(aServiceId),
    76 	 iServiceId(aServiceId),
    76 	 iBrandHandler(aBrandHandler),
    77 	 iBrandHandler(aBrandHandler),
    77 	 iEngine(aEngine)
    78 	 iEngine(aEngine),
       
    79 	 iCba(aCba)
    78     {
    80     {
    79 
    81 
    80     }
    82     }
    81 
    83 
    82 
    84 
   142 //
   144 //
   143 CVIMPSTUiDoubleListBoxTabViewControl* CVIMPSTUiDoubleListBoxTabViewControl::NewL
   145 CVIMPSTUiDoubleListBoxTabViewControl* CVIMPSTUiDoubleListBoxTabViewControl::NewL
   144         (CVIMPSTUiTabbedView& aTabbedView,MPbk2KeyEventHandler* aKeyEventHandler, 
   146         (CVIMPSTUiTabbedView& aTabbedView,MPbk2KeyEventHandler* aKeyEventHandler, 
   145         MVIMPSTCmdHandler& aCommandHandler, TUint32 aServiceId,
   147         MVIMPSTCmdHandler& aCommandHandler, TUint32 aServiceId,
   146         CVIMPSTUiBrandData& aBrandHandler,
   148         CVIMPSTUiBrandData& aBrandHandler,
   147         MVIMPSTEngine& aEngine)
   149         MVIMPSTEngine& aEngine,
       
   150         CEikButtonGroupContainer* aCba)
   148     {
   151     {
   149 	TRACER_AUTO;
   152 	TRACER_AUTO;
   150     CVIMPSTUiDoubleListBoxTabViewControl* self = NewLC(aTabbedView,aKeyEventHandler,
   153     CVIMPSTUiDoubleListBoxTabViewControl* self = NewLC(aTabbedView,aKeyEventHandler,
   151     			aCommandHandler, aServiceId, aBrandHandler,aEngine);
   154     			aCommandHandler, aServiceId, aBrandHandler,aEngine,aCba);
   152     CleanupStack::Pop(self);
   155     CleanupStack::Pop(self);
   153     return self;
   156     return self;
   154     }
   157     }
   155 
   158 
   156 
   159 
   160 //
   163 //
   161 CVIMPSTUiDoubleListBoxTabViewControl* CVIMPSTUiDoubleListBoxTabViewControl::NewLC
   164 CVIMPSTUiDoubleListBoxTabViewControl* CVIMPSTUiDoubleListBoxTabViewControl::NewLC
   162         (CVIMPSTUiTabbedView& aTabbedView,MPbk2KeyEventHandler* aKeyEventHandler,
   165         (CVIMPSTUiTabbedView& aTabbedView,MPbk2KeyEventHandler* aKeyEventHandler,
   163         MVIMPSTCmdHandler& aCommandHandler, TUint32 aServiceId,
   166         MVIMPSTCmdHandler& aCommandHandler, TUint32 aServiceId,
   164         CVIMPSTUiBrandData& aBrandHandler,
   167         CVIMPSTUiBrandData& aBrandHandler,
   165         MVIMPSTEngine& aEngine)
   168         MVIMPSTEngine& aEngine,
       
   169         CEikButtonGroupContainer* aCba)
   166     {
   170     {
   167 	TRACER_AUTO;
   171 	TRACER_AUTO;
   168     CVIMPSTUiDoubleListBoxTabViewControl* self =
   172     CVIMPSTUiDoubleListBoxTabViewControl* self =
   169         new (ELeave) CVIMPSTUiDoubleListBoxTabViewControl(aTabbedView,aKeyEventHandler,
   173         new (ELeave) CVIMPSTUiDoubleListBoxTabViewControl(aTabbedView,aKeyEventHandler,
   170         aCommandHandler, aServiceId, aBrandHandler,aEngine);
   174         aCommandHandler, aServiceId, aBrandHandler,aEngine,aCba);
   171     CleanupStack::PushL(self);
   175     CleanupStack::PushL(self);
   172     self->ConstructL();
   176     self->ConstructL();
   173     return self;
   177     return self;
   174     }
   178     }
   175 
   179 
  1230         
  1234         
  1231         TVIMPSTEnums::TItem itemtype = iArrayProcess.GetType(index);
  1235         TVIMPSTEnums::TItem itemtype = iArrayProcess.GetType(index);
  1232         TVIMPSTEnums::TOnlineStatus onlinestatus = iCommandHandler.GetProcessInterface().GetOnlineStatusL(index);        
  1236         TVIMPSTEnums::TOnlineStatus onlinestatus = iCommandHandler.GetProcessInterface().GetOnlineStatusL(index);        
  1233         TVIMPSTEnums::TVIMPSTRegistrationState servicestate = iEngine.ServiceState();
  1237         TVIMPSTEnums::TVIMPSTRegistrationState servicestate = iEngine.ServiceState();
  1234         TBool updateinvalid( iLastFocusedItemType == TVIMPSTEnums::EInvalid );
  1238         TBool updateinvalid( iLastFocusedItemType == TVIMPSTEnums::EInvalid );
  1235          if ( !iCba )
  1239 //         if ( !iCba )
  1236             {
  1240 //            {
  1237             iCba = CEikButtonGroupContainer::Current();
  1241 //            iCba = CEikButtonGroupContainer::Current();        	
  1238             }
  1242 //            }
  1239 
  1243 
  1240         // default softkeys
  1244         // default softkeys
  1241          if(iCba)
  1245          if(iCba)
  1242              {
  1246              {
  1243              if( aUseDefaultCba || updateinvalid )
  1247              if( aUseDefaultCba || updateinvalid )