ipsservices/ipssossettings/src/ipssetdataapi.cpp
branchRCL_3
changeset 70 968773a0b6ef
parent 64 3533d4323edc
child 80 726fba06891a
equal deleted inserted replaced
64:3533d4323edc 70:968773a0b6ef
   663 
   663 
   664     {
   664     {
   665     FUNC_LOG;
   665     FUNC_LOG;
   666     TInt sizeLimit = aImap4Settings.BodyTextSizeLimit();
   666     TInt sizeLimit = aImap4Settings.BodyTextSizeLimit();
   667     
   667     
   668 	
   668     TInt limit(KMaxTInt);
   669     CRepository* centRep = NULL;
   669     CRepository* centRep = NULL;
   670     TRAP_IGNORE( centRep = CRepository::NewL( KFreestyleEmailCenRep ) );
   670     TRAP_IGNORE( centRep = CRepository::NewL( KFreestyleEmailCenRep ) );
   671     
   671     if (NULL != centRep)
   672     TInt limit( 0 );
   672         {
   673     TInt err = centRep->Get( KFreestyleMaxBodySize , limit );
   673         //not necessary to push centRep as no leave function is called
   674 	limit *= KKilo;
   674         TInt err = centRep->Get(KFreestyleMaxBodySize, limit);
   675 	if ( limit == 0 || err )
   675         limit *= KKilo;
   676         {
   676         if (limit == 0 || err)
   677         limit = KMaxTInt;
   677             {
   678         }
   678             limit = KMaxTInt;
   679     
   679             }
       
   680         //free
       
   681         delete centRep;
       
   682         centRep = NULL;		
       
   683         }//end if (NULL != centRep)
       
   684 
   680     if ( sizeLimit == KIpsSetDataHeadersOnly )
   685     if ( sizeLimit == KIpsSetDataHeadersOnly )
   681         {
   686         {
   682         aInfo.iTotalSizeLimit = KIpsSetDataHeadersOnly;
   687         aInfo.iTotalSizeLimit = KIpsSetDataHeadersOnly;
   683         }
   688         }
   684     else if ( sizeLimit == KIpsSetDataFullBodyAndAttas )
   689     else if ( sizeLimit == KIpsSetDataFullBodyAndAttas )