satengine/satserver/Engine/src/CSatApnHandler.cpp
changeset 53 25b8d29b7c59
parent 33 8d5d7fcf9b59
equal deleted inserted replaced
51:12bc758d6a02 53:25b8d29b7c59
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // INCLUDE FILES
    18 // INCLUDE FILES
    19 #include <cmmanager.h>
    19 #include <cmmanager.h>
    20 #include <cmmanagerext.h>
       
    21 #include <cmconnectionmethod.h>
    20 #include <cmconnectionmethod.h>
    22 #include <cmconnectionmethodext.h>
       
    23 #include <cmconnectionmethoddef.h>
    21 #include <cmconnectionmethoddef.h>
    24 #include <cmpluginpacketdatadef.h>
    22 #include <cmpluginpacketdatadef.h>
    25 #include <cmdestination.h>
    23 #include <cmdestination.h>
    26 #include <cmmanagerdef.h>
    24 #include <cmmanagerdef.h>
    27 
    25 
   207     LOG( SIMPLE, "SATENGINE: CSatApnHandler::DeleteApnL calling" )
   205     LOG( SIMPLE, "SATENGINE: CSatApnHandler::DeleteApnL calling" )
   208 
   206 
   209     if ( aApnId )
   207     if ( aApnId )
   210         { 
   208         { 
   211         // Create CMManager Session
   209         // Create CMManager Session
   212         RCmManagerExt cmManager;
   210         RCmManager cmManager;
   213         cmManager.OpenLC();
   211         cmManager.OpenLC();
   214         
   212         
   215         // Get the connection method
   213         // Get the connection method
   216         RCmConnectionMethodExt cm;
   214         RCmConnectionMethod cm;
   217         cm = cmManager.ConnectionMethodL( aApnId );
   215         cm = cmManager.ConnectionMethodL( aApnId );
   218         CleanupClosePushL( cm );
   216         CleanupClosePushL( cm );
   219 
   217 
   220         cm.DeleteL();
   218         cm.DeleteL();
   221         LOG2( SIMPLE, "SATENGINE: CSatApnHandler::DeleteApnL, \
   219         LOG2( SIMPLE, "SATENGINE: CSatApnHandler::DeleteApnL, \
   245 
   243 
   246     LOG2( NORMAL, "SATENGINE: CSatApnHandler::InsertRecordL, apn is %S", 
   244     LOG2( NORMAL, "SATENGINE: CSatApnHandler::InsertRecordL, apn is %S", 
   247         &aReqApn )
   245         &aReqApn )
   248     
   246     
   249     // Create CMManager Session
   247     // Create CMManager Session
   250     RCmManagerExt cmManager;
   248     RCmManager cmManager;
   251     cmManager.OpenLC();
   249     cmManager.OpenLC();
   252 
   250 
   253     // Create a connection method without destination. So when we can find 
   251     // Create a connection method without destination. So when we can find 
   254     // the connection method by going through the connection method list.
   252     // the connection method by going through the connection method list.
   255     RCmConnectionMethodExt cm;
   253     RCmConnectionMethod cm;
   256     cm = cmManager.CreateConnectionMethodL( KUidPacketDataBearerType );
   254     cm = cmManager.CreateConnectionMethodL( KUidPacketDataBearerType );
   257     CleanupClosePushL( cm );
   255     CleanupClosePushL( cm );
   258     
   256     
   259     // This is shown in GS in Access Point list
   257     // This is shown in GS in Access Point list
   260     cm.SetStringAttributeL( CMManager::ECmName, iUtils.BipApnName() );    
   258     cm.SetStringAttributeL( CMManager::ECmName, iUtils.BipApnName() );