equal
deleted
inserted
replaced
351 { |
351 { |
352 _LIT( KPSUIGSPluginNumbering, "(%N)" ); |
352 _LIT( KPSUIGSPluginNumbering, "(%N)" ); |
353 const TInt KPSUIFormattingExtraLength = 6; |
353 const TInt KPSUIFormattingExtraLength = 6; |
354 |
354 |
355 // prepare |
355 // prepare |
356 HBufC* settingName = aOriginalName ? |
356 HBufC* settingName = aOriginalName; |
357 aOriginalName : |
|
358 StringLoader::LoadL( R_QTN_PRESENCE_NAME_DEFAULT ); |
|
359 |
357 |
360 if ( settingName->Length() + KPSUIFormattingExtraLength > KPresSetNameMaxLength ) |
358 if ( settingName->Length() + KPSUIFormattingExtraLength > KPresSetNameMaxLength ) |
361 {//if there is no room for duplicate-numbering, let user take care of that when saving settings |
359 {//if there is no room for duplicate-numbering, let user take care of that when saving settings |
362 CleanupStack::PushL( settingName ); |
360 CleanupStack::PushL( settingName ); |
363 return settingName; |
361 return settingName; |
386 CleanupStack::PushL( tempSetName ); |
384 CleanupStack::PushL( tempSetName ); |
387 tempSetName->Des().Append( KPSUIGSPluginNumbering ); |
385 tempSetName->Des().Append( KPSUIGSPluginNumbering ); |
388 } |
386 } |
389 else |
387 else |
390 {// aOriginalName not given |
388 {// aOriginalName not given |
391 tempSetName = StringLoader::LoadLC( R_QTN_PRESENCE_NAME_DEFAULT_NUMBER ); |
|
392 } |
389 } |
393 } |
390 } |
394 StringLoader::Format( ptr, *tempSetName, -1, index ); |
391 StringLoader::Format( ptr, *tempSetName, -1, index ); |
395 found = iPSNameArray->Find( *settingName, pos ); |
392 found = iPSNameArray->Find( *settingName, pos ); |
396 index++; |
393 index++; |