supl/locationsuplfw/settingsapi/src/epos_csettingsdatabasehandler.cpp
branchRCL_3
changeset 4 42de37ce7ce4
parent 0 667063e416a2
child 20 2b4ea9893b66
equal deleted inserted replaced
1:788b770ce3ae 4:42de37ce7ce4
   514     if(editable)
   514     if(editable)
   515         {
   515         {
   516         OtherProperties |= KEditable;
   516         OtherProperties |= KEditable;
   517         }
   517         }
   518     
   518     
   519     TBuf<KGenericStringLen> tempBuf;
   519     TBuf<KMaxHSLPAddrLen> tempBuf;
       
   520     TBuf<KMaxIAPLen> tempIapBuf;
   520     tempBuf.Copy(*SLPAddress);
   521     tempBuf.Copy(*SLPAddress);
   521     tempBuf.Trim();
   522     tempIapBuf.Copy(*IAPName);
       
   523     tempBuf.TrimAll();
       
   524     tempIapBuf.TrimAll();
       
   525     
       
   526     if( tempBuf.Length() == 0 )
       
   527 	    {
       
   528 	    CleanupStack::PopAndDestroy(3); //SLPAddress,IAPName,manuName
       
   529         User::Leave(KErrArgument);        
       
   530 	    }
       
   531     
   522     
   532     
   523     iSQLString.Copy(KInsertIntoTable);
   533     iSQLString.Copy(KInsertIntoTable);
   524     iSQLString.Append(KCreateTableName);
   534     iSQLString.Append(KCreateTableName);
   525     iSQLString.Append(KOpeningBracket);
   535     iSQLString.Append(KOpeningBracket);
   526 
   536 
   592     iSQLString.Append(*manuName);
   602     iSQLString.Append(*manuName);
   593     iSQLString.Append(KQuotes);
   603     iSQLString.Append(KQuotes);
   594     iSQLString.Append(KCommaSeparator);
   604     iSQLString.Append(KCommaSeparator);
   595 
   605 
   596     iSQLString.Append(KQuotes);
   606     iSQLString.Append(KQuotes);
   597     iSQLString.Append(*IAPName);
   607     iSQLString.Append(tempIapBuf);
   598     iSQLString.Append(KQuotes);
   608     iSQLString.Append(KQuotes);
   599     iSQLString.Append(KCommaSeparator);
   609     iSQLString.Append(KCommaSeparator);
   600 
   610 
   601 
   611 
   602     iSQLString.Append(KQuotes);
   612     iSQLString.Append(KQuotes);