diff -r 6b5524b4f673 -r 38bb213f60ba phonebookui/Phonebook2/USIMExtension/src/CPsu2CopyToSimFieldInfoArray.cpp --- a/phonebookui/Phonebook2/USIMExtension/src/CPsu2CopyToSimFieldInfoArray.cpp Wed Sep 15 11:56:55 2010 +0300 +++ b/phonebookui/Phonebook2/USIMExtension/src/CPsu2CopyToSimFieldInfoArray.cpp Wed Oct 13 14:15:33 2010 +0300 @@ -23,8 +23,8 @@ #include #include -#include -#include +#include +#include #include #include @@ -33,8 +33,8 @@ #include #include #include -#include -#include + +#include namespace { @@ -86,9 +86,9 @@ MVPbkFieldTypeSelector& SourceTypeSelector() const; /** - * Returns the resource id (vpbkeng.rsg) of the target field type. + * Returns the resource id (VPbkEng.rsg) of the target field type. * - * @return the resource id (vpbkeng.rsg) of the target field type. + * @return the resource id (VPbkEng.rsg) of the target field type. */ TInt TargetFieldtypeResId() const; @@ -112,7 +112,7 @@ private: // Data /// Own: source field type selector CVPbkFieldTypeSelector* iSourceTypeSelector; - /// Own: target field type resource id (vpbkeng.rsg) + /// Own: target field type resource id (VPbkEng.rsg) TInt iTargetFieldTypeResId; /// Flags from Pbk2UsimUi.hrh TUint8 iFlags; @@ -239,19 +239,10 @@ RPbk2LocalizedResourceFile resFile( &aFs ); resFile.OpenLC(KPbk2RomFileDrive, KDC_RESOURCE_FILES_DIR, KPsu2USimExtensionResFile); - FeatureManager::InitializeLibL(); + TResourceReader reader; - if( !FeatureManager::FeatureSupported( - KFeatureIdFfTdClmcontactreplicationfromphonebooktousimcard ) ) - { - reader.SetBuffer( - resFile.AllocReadLC( R_PSU2_COPY_TO_SIM_FIELDTYPE_MAPPINGS ) ); - } - else - { - reader.SetBuffer( - resFile.AllocReadLC( R_PSU2_COPY_TO_USIM_FIELDTYPE_MAPPINGS ) ); - } + reader.SetBuffer( + resFile.AllocReadLC( R_PSU2_COPY_TO_SIM_FIELDTYPE_MAPPINGS ) ); // Go through all mappings in resource and create a mapping array const TInt count = reader.ReadInt16(); @@ -308,7 +299,6 @@ iInfoArray.Close(); iMatchedTypes.Close(); delete iNumberKeyMap; - FeatureManager::UnInitializeLib(); } // ----------------------------------------------------------------------------- @@ -330,25 +320,6 @@ } return result; } - -// ----------------------------------------------------------------------------- -// CPsu2CopyToSimFieldInfoArray::RemoveUnSupportedTargetTypeFieldInfo -// ----------------------------------------------------------------------------- -// -void CPsu2CopyToSimFieldInfoArray::RemoveUnSupportedFieldInfo( const MVPbkFieldTypeList& aSupportedTypes ) - { - // Check all the field info in the iInfoArray, if the target of the fieldinfo - // is not contained in the supportedTypes, Remove it from iInfoArray. - TInt i = iInfoArray.Count() - 1; - while( i >= 0 ) - { - if( !aSupportedTypes.ContainsSame( iInfoArray[i].SimType())) - { - iInfoArray.Remove( i ); - } - i --; - } - } // ----------------------------------------------------------------------------- // CPsu2CopyToSimFieldInfoArray::SimNameType