creator/engine/src/creator_contactelement.cpp
changeset 51 b048e15729d6
parent 31 e7a04a6385be
child 52 36d60d12b4af
equal deleted inserted replaced
44:5db69f4c3d06 51:b048e15729d6
   194                 
   194                 
   195                 }
   195                 }
   196             for( TInt i = 0; i < fieldList.Count(); ++i )
   196             for( TInt i = 0; i < fieldList.Count(); ++i )
   197                 {
   197                 {
   198                 TPtrC fieldName = fieldList[i]->Name();
   198                 TPtrC fieldName = fieldList[i]->Name();
   199                 CCreatorContactField* field = 0;
       
   200 				field = CCreatorContactField::NewL();
       
   201 
       
   202                 const CCreatorScriptAttribute* amountAttr = fieldList[i]->FindAttributeByName(KAmount);
   199                 const CCreatorScriptAttribute* amountAttr = fieldList[i]->FindAttributeByName(KAmount);
   203                 const CCreatorScriptAttribute* rndLenAttr = fieldList[i]->FindAttributeByName(KRandomLength);
   200                 const CCreatorScriptAttribute* rndLenAttr = fieldList[i]->FindAttributeByName(KRandomLength);
   204                 const CCreatorScriptAttribute* increaseAttr = fieldList[i]->FindAttributeByName(KIncrease);
   201                 const CCreatorScriptAttribute* increaseAttr = fieldList[i]->FindAttributeByName(KIncrease);
   205                 TBool increase( EFalse );
   202                 //TBool increase( EFalse );
   206                 if ( increaseAttr )
   203                 //if ( increaseAttr )
   207                     {
   204                 //    {
   208                     increase = ConvertStrToBooleanL( increaseAttr->Value() );
   205                 //    increase = ConvertStrToBooleanL( increaseAttr->Value() );
   209                     }
   206                 //    }
   210                 for( TInt j = 0; j < fieldMappingTblSize; ++j )
   207                 for( TInt j = 0; j < fieldMappingTblSize; ++j )
   211                     {
   208                     {
   212                     const FieldMapping& mapping = fieldMappingTbl[j];
   209                     const FieldMapping& mapping = fieldMappingTbl[j];
   213                     if( fieldName == mapping.iElementName )
   210                     if( fieldName == mapping.iElementName )
   214                         {
   211                         {
   215                         TInt rndLen = 0;
       
   216                         TPtrC content = fieldList[i]->Content();
   212                         TPtrC content = fieldList[i]->Content();
   217                                                                         
   213                                                                         
   218 //                        MCreatorRandomDataField::TRandomLengthType randomLenType = MCreatorRandomDataField::ERandomLengthUndefined;
   214 //                        MCreatorRandomDataField::TRandomLengthType randomLenType = MCreatorRandomDataField::ERandomLengthUndefined;
   219                     
   215                     
   220                         if( content == TPtrC(KEmpty) || content == TPtrC(KNullDesC) )
   216                         if( content == TPtrC(KEmpty) || content == TPtrC(KNullDesC) )