equal
deleted
inserted
replaced
163 { |
163 { |
164 TPtrC16 xDMSetName; |
164 TPtrC16 xDMSetName; |
165 TPtrC16 xDMSetNameClipped; |
165 TPtrC16 xDMSetNameClipped; |
166 xDMSetName.Set(iSettingListArray->MdcaPoint(iMainList->CurrentItemIndex())); |
166 xDMSetName.Set(iSettingListArray->MdcaPoint(iMainList->CurrentItemIndex())); |
167 xDMSetNameClipped.Set(xDMSetName.Mid(1)); // remove '/t' from the begining |
167 xDMSetNameClipped.Set(xDMSetName.Mid(1)); // remove '/t' from the begining |
168 CXDMPlugin* iTempView = static_cast<CXDMPlugin*> (iView); |
|
169 iTempView->LoadSettingsViewL(EEditExisting, xDMSetNameClipped); |
|
170 } |
168 } |
171 |
169 |
172 // --------------------------------------------------------------------------- |
170 // --------------------------------------------------------------------------- |
173 // CXDMPluginContainer::GetCurrentSetNameLC() |
171 // CXDMPluginContainer::GetCurrentSetNameLC() |
174 // --------------------------------------------------------------------------- |
172 // --------------------------------------------------------------------------- |
200 // if cancel key is pressed and list is not empty, invoke deletion |
198 // if cancel key is pressed and list is not empty, invoke deletion |
201 if ((aKeyEvent.iCode == EKeyBackspace ) && (aType == EEventKey) ) |
199 if ((aKeyEvent.iCode == EKeyBackspace ) && (aType == EEventKey) ) |
202 { |
200 { |
203 if(!IsListEmpty()) |
201 if(!IsListEmpty()) |
204 DeleteSetProcedureL(); |
202 DeleteSetProcedureL(); |
205 CXDMPlugin* iTempView = static_cast<CXDMPlugin*> (iView); |
|
206 iTempView->UpdateMSK(); |
|
207 return EKeyWasConsumed; |
203 return EKeyWasConsumed; |
208 } |
204 } |
209 else |
205 else |
210 return iMainList->OfferKeyEventL (aKeyEvent, aType); |
206 return iMainList->OfferKeyEventL (aKeyEvent, aType); |
211 } |
207 } |
244 // --------------------------------------------------------------------------- |
240 // --------------------------------------------------------------------------- |
245 // |
241 // |
246 void CXDMPluginContainer::LoadSettingsListArrayL() |
242 void CXDMPluginContainer::LoadSettingsListArrayL() |
247 { |
243 { |
248 iTitlePane->SetTextL(iTitle); |
244 iTitlePane->SetTextL(iTitle); |
249 _LIT (KStringHeader, "\t%S"); |
|
250 TBuf <KMaxSettingSetNameLength+2> myString; // maximum name + \t |
245 TBuf <KMaxSettingSetNameLength+2> myString; // maximum name + \t |
251 RArray<TInt> settingIds; |
246 RArray<TInt> settingIds; |
252 CleanupClosePushL(settingIds); |
247 CleanupClosePushL(settingIds); |
253 CDesCArray* xdmSetList = NULL; |
248 CDesCArray* xdmSetList = NULL; |
254 TRAPD(err, xdmSetList = LoadCollectionNamesL(settingIds)); |
249 TRAPD(err, xdmSetList = LoadCollectionNamesL(settingIds)); |
260 CleanupStack::PushL(xdmSetList); |
255 CleanupStack::PushL(xdmSetList); |
261 TInt xdmSetListCount = xdmSetList->Count(); |
256 TInt xdmSetListCount = xdmSetList->Count(); |
262 iSettingListArray->Reset(); |
257 iSettingListArray->Reset(); |
263 for (TInt i = 0; i< xdmSetListCount; i++) |
258 for (TInt i = 0; i< xdmSetListCount; i++) |
264 { |
259 { |
265 myString.Format(KStringHeader, &(xdmSetList->MdcaPoint(i))); |
|
266 AknTextUtils::LanguageSpecificNumberConversion(myString); |
|
267 iSettingListArray->AppendL (myString); |
|
268 } |
260 } |
269 iSettingListArray->Sort(ECmpCollated); |
261 iSettingListArray->Sort(ECmpCollated); |
270 CleanupStack::PopAndDestroy(2); //xdmSetList,settingIds |
262 CleanupStack::PopAndDestroy(2); //xdmSetList,settingIds |
271 iMainList->HandleItemRemovalL(); |
263 iMainList->HandleItemRemovalL(); |
272 iMainList->HandleItemAdditionL(); |
264 iMainList->HandleItemAdditionL(); |
395 void CXDMPluginContainer::HandleResourceChange( TInt aType ) |
387 void CXDMPluginContainer::HandleResourceChange( TInt aType ) |
396 { |
388 { |
397 if ( aType == KAknsMessageSkinChange || |
389 if ( aType == KAknsMessageSkinChange || |
398 aType == KEikDynamicLayoutVariantSwitch ) |
390 aType == KEikDynamicLayoutVariantSwitch ) |
399 { |
391 { |
400 CXDMPlugin* iTempView = static_cast<CXDMPlugin*> (iView); |
|
401 iTempView->HandleResourceChangeManual(aType); |
|
402 } |
392 } |
403 CCoeControl::HandleResourceChange( aType ); |
393 CCoeControl::HandleResourceChange( aType ); |
404 } |
394 } |
405 |
395 |
406 // --------------------------------------------------------------------------- |
396 // --------------------------------------------------------------------------- |