supl/locationomasuplprotocolhandler/supllistener/src/epos_comasuplproductconfig.cpp
branchRCL_3
changeset 44 2b4ea9893b66
parent 0 667063e416a2
child 45 6b6920c56e2f
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
    98     {
    98     {
    99         Trace(_L("Start of Product Configuration"),KProductConfig, __LINE__);
    99         Trace(_L("Start of Product Configuration"),KProductConfig, __LINE__);
   100         
   100         
   101         TUint32 key = KProductConfigActualKeysStart;
   101         TUint32 key = KProductConfigActualKeysStart;
   102         
   102         
   103         iServerAddress.Create(KMaxServerNameLength);
   103         User::LeaveIfError(iServerAddress.Create(KMaxServerNameLength));
   104         iIapName.Create(KMaxServerNameLength);
   104         User::LeaveIfError(iIapName.Create(KMaxServerNameLength));
   105         
   105         
   106         TBool serverEnabled;
   106         TBool serverEnabled;
   107         TBool simChangeRemove;
   107         TBool simChangeRemove;
   108         TBool usageInHomeNw;
   108         TBool usageInHomeNw;
   109         TBool editable;
   109         TBool editable;
   153                     {
   153                     {
   154                     key = key + 5;
   154                     key = key + 5;
   155                     }
   155                     }
   156                 if(iServerAddress.Length()!=0)
   156                 if(iServerAddress.Length()!=0)
   157                     {
   157                     {
   158                     err = params->Set(iServerAddress,iIapName,serverEnabled,simChangeRemove,usageInHomeNw,editable);
   158                     //last parameter is ETrue since this is a product configured server
       
   159                     err = params->Set(iServerAddress,iIapName,serverEnabled,simChangeRemove,usageInHomeNw,editable,0);//by default product config
   159                     errCode.AppendNum(err);
   160                     errCode.AppendNum(err);
   160                     Trace(_L("params->Set returned:"),KProductConfig, __LINE__);
   161                     Trace(_L("params->Set returned:"),KProductConfig, __LINE__);
   161                     Trace(errCode,KProductConfig, __LINE__);
   162                     Trace(errCode,KProductConfig, __LINE__);
   162                     errCode.Zero();
   163                     errCode.Zero();
   163                     err = iSettings->AddNewServer(params,slpId);
   164                     err = iSettings->AddNewServer(params,slpId);