phonebookengines/VirtualPhonebook/VPbkVCardEng/src/CVPbkVCardPropertyParser.cpp
branchRCL_3
changeset 21 9da50d567e3c
parent 0 e686773b3f54
equal deleted inserted replaced
20:f4a778e096c2 21:9da50d567e3c
   141             HBufC8* name = ConvertToUpperCaseLC( param->Name() );
   141             HBufC8* name = ConvertToUpperCaseLC( param->Name() );
   142 
   142 
   143             TVPbkFieldTypeParameter fieldTypeParam = 
   143             TVPbkFieldTypeParameter fieldTypeParam = 
   144                 static_cast<TVPbkFieldTypeParameter>( 
   144                 static_cast<TVPbkFieldTypeParameter>( 
   145                     TVPbkMappingsFindTool::FindIdByName( *name, paramArray ) );
   145                     TVPbkMappingsFindTool::FindIdByName( *name, paramArray ) );
   146             if (!iAttributeHandler.CreateAttributeL(fieldTypeParam))
   146             if (!iAttributeHandler.CreateAttributeL(fieldTypeParam, 
       
   147             		iVersitProperty.Name()))
   147                 {
   148                 {
   148                 // No attribute created from fieldTypeParam,
   149                 // No attribute created from fieldTypeParam,
   149                 // so add to parameters list
   150                 // so add to parameters list
   150                 parameters.Add(fieldTypeParam);                  
   151                 parameters.Add(fieldTypeParam);                  
   151                 }                                
   152                 }                                
   161                 HBufC8* name = ConvertToUpperCaseLC( paramArray[ n ]->Name() );
   162                 HBufC8* name = ConvertToUpperCaseLC( paramArray[ n ]->Name() );
   162                 
   163                 
   163                 TVPbkFieldTypeParameter fieldTypeParam = 
   164                 TVPbkFieldTypeParameter fieldTypeParam = 
   164                 static_cast<TVPbkFieldTypeParameter>( 
   165                 static_cast<TVPbkFieldTypeParameter>( 
   165                     TVPbkMappingsFindTool::FindIdByName( *name, paramArray ) );
   166                     TVPbkMappingsFindTool::FindIdByName( *name, paramArray ) );
   166                 if (!iAttributeHandler.CreateAttributeL(fieldTypeParam))
   167                 if (!iAttributeHandler.CreateAttributeL(fieldTypeParam, 
       
   168                 		iVersitProperty.Name()))
   167                     {
   169                     {
   168                     // No attribute created from fieldTypeParam,
   170                     // No attribute created from fieldTypeParam,
   169                     // so add to parameters list
   171                     // so add to parameters list
   170                     parameters.Add(fieldTypeParam);                  
   172                     parameters.Add(fieldTypeParam);                  
   171                     }                                
   173                     }