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