satengine/satserver/Commands/LaunchBrowserCmd/src/CLaunchBrowserHandler.cpp
changeset 51 12bc758d6a02
parent 33 8d5d7fcf9b59
child 53 25b8d29b7c59
equal deleted inserted replaced
48:78df25012fda 51:12bc758d6a02
   798 
   798 
   799 // --------------------------------------------------------------------------
   799 // --------------------------------------------------------------------------
   800 // Launches The Browser with URL.
   800 // Launches The Browser with URL.
   801 // --------------------------------------------------------------------------
   801 // --------------------------------------------------------------------------
   802 //
   802 //
   803 void CLaunchBrowserHandler::LaunchWithUrlL( const TDesC& aParam,
   803 void CLaunchBrowserHandler::LaunchWithUrlL( const TDesC& /*aParam*/,
   804     const TUid& aAccessPointUid )
   804     const TUid& /*aAccessPointUid*/ )
   805     {
   805     {
   806     LOG( SIMPLE,
   806     LOG( SIMPLE,
   807         "LAUNCHBROWSER: CLaunchBrowserHandler::LaunchWithUrlL calling" )
   807         "LAUNCHBROWSER: CLaunchBrowserHandler::LaunchWithUrlL calling" )
   808     LOG3( SIMPLE,
   808 //    LOG3( SIMPLE,
   809          "LAUNCHBROWSER: CLaunchBrowserHandler::LaunchWithUrlL\
   809 //         "LAUNCHBROWSER: CLaunchBrowserHandler::LaunchWithUrlL\
   810           url=%s, IAP=%d", &aParam, aAccessPointUid.iUid )        
   810 //          url=%s, IAP=%d", &aParam, aAccessPointUid.iUid )        
   811 
   811 
   812     // Browser launching called.
   812     // Browser launching called.
   813     //TInt err = iUtils->SatUiHandler().ShellController().LaunchBrowserL(
   813 //    TInt err = iUtils->SatUiHandler().ShellController().LaunchBrowserL(
   814     //    aParam, aAccessPointUid );
   814 //        aParam, aAccessPointUid );
   815     TInt err =  KErrNone;
   815     TInt err =  KErrNone;
   816 
   816 
   817     if ( KErrNone == err )
   817     if ( KErrNone == err )
   818         {
   818         {
   819         if ( !iQueryRsp.iRequestedIconDisplayed &&
   819         if ( !iQueryRsp.iRequestedIconDisplayed &&
   964     
   964     
   965     // Fulfill connection method params with default setting from OCC.
   965     // Fulfill connection method params with default setting from OCC.
   966     // We use trap to continue following operations even if leaving from 
   966     // We use trap to continue following operations even if leaving from 
   967     // FulfillConnnectionMethodL.
   967     // FulfillConnnectionMethodL.
   968     TRAPD( errCode, FulfillConnnectionMethodL( cmManager, cm ) );
   968     TRAPD( errCode, FulfillConnnectionMethodL( cmManager, cm ) );
   969     LOG3( SIMPLE, "SATENGINE: CLaunchBrowserHandler::CreateAccessPointL \
   969     if ( errCode != KErrNone )
   970           errCode=%d ad line %d", errCode, __LINE__ )
   970         {
       
   971         LOG3( SIMPLE, "SATENGINE: CLaunchBrowserHandler::CreateAccessPointL"
       
   972             " error %d at line %d", errCode, __LINE__ )
       
   973         }
   971     // Set attributes of the connection method.
   974     // Set attributes of the connection method.
   972     cm.SetStringAttributeL( CMManager::ECmName, aApName );
   975     cm.SetStringAttributeL( CMManager::ECmName, aApName );
   973     cm.SetIntAttributeL( CMManager::EPacketDataPDPType, aIPvType );
   976     cm.SetIntAttributeL( CMManager::EPacketDataPDPType, aIPvType );
   974     cm.SetStringAttributeL( CMManager::ECmWapIPGatewayAddress, 
   977     cm.SetStringAttributeL( CMManager::ECmWapIPGatewayAddress, 
   975                             TPtrC( aProxyServerAddr ) );
   978                             TPtrC( aProxyServerAddr ) );