applicationmanagement/server/src/AMSmlHelper.cpp
branchRCL_3
changeset 57 6757f1e2efd2
parent 20 f6aa907032f4
child 58 5b858729772b
equal deleted inserted replaced
55:c4687ff85147 57:6757f1e2efd2
    13  *
    13  *
    14  * Description: Implementation of applicationmanagement components
    14  * Description: Implementation of applicationmanagement components
    15  *
    15  *
    16  */
    16  */
    17 
    17 
       
    18 
       
    19 #include <SyncMLClientDM.h>
       
    20 #include <rconnmon.h> 
    18 #include "amsmlhelper.h"
    21 #include "amsmlhelper.h"
    19 #include <SyncMLClientDM.h>
       
    20 #include "debug.h"
    22 #include "debug.h"
    21 #include <rconnmon.h> 
    23 
    22 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    24 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    23 #include <es_sock.h>
    25 #include <es_sock.h>
    24 #else
    26 #else
    25 #include <es_sock.h>
    27 #include <es_sock.h>
    26 #include <es_enum_internal.h>
    28 #include <es_enum_internal.h>
   208     value.Copy(source.Left(value.MaxLength() ) );
   210     value.Copy(source.Left(value.MaxLength() ) );
   209     User::LeaveIfError(StrToInt(value, num) );
   211     User::LeaveIfError(StrToInt(value, num) );
   210     RDEBUG("	8/8");
   212     RDEBUG("	8/8");
   211 
   213 
   212     aDefaultIAP = num;
   214     aDefaultIAP = num;
   213     
       
   214     RDEBUG_2( "GetDefaultIAPFromDMProfileL::SetIAPL: Set IAP Id value to (%d) ", aDefaultIAP);
       
   215 
   215 
   216     // If there is no default Access point in DM profile then use
   216     // If there is no default Access point in DM profile then use
   217     // currently used access point by DM session
   217     // currently used access point by DM session
   218 
   218 
   219     if (aDefaultIAP <= -1)
   219     if (aDefaultIAP == -2)
   220         {
   220         {
   221 
   221 
   222         TInt sockIapid = -1;
   222         TInt sockIapid = -1;
   223 
   223 
   224         RSocketServ serv;
   224         RSocketServ serv;
   271                 TConnectionClientInfo conCliInf = conCliInfoBuf().iClientInfo;
   271                 TConnectionClientInfo conCliInf = conCliInfoBuf().iClientInfo;
   272                 TUid uid = conCliInf.iUid;
   272                 TUid uid = conCliInf.iUid;
   273                 if (uid == KSosServerUid)
   273                 if (uid == KSosServerUid)
   274                     {
   274                     {
   275                     sockIapid = connInfo().iIapId;
   275                     sockIapid = connInfo().iIapId;
   276                     RDEBUG_2( "GetDefaultIAPFromDMProfileL::SetIAPL: Set IAP Id value to (%d) ", sockIapid);
       
   277 
   276 
   278                     }
   277                     }
   279 
   278 
   280                 }
   279                 }
   281             }
   280             }