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