satengine/SatServer/Commands/LaunchBrowserCmd/src/CLaunchBrowserHandler.cpp
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     1 /*
     1 /*
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  Handles LaunchBrowser command
    14 * Description:  Handles LaunchBrowser command
    15 *
    15 *
    16 */
    16 */
    17 
       
    18 
    17 
    19 
    18 
    20 #include    <MSatShellController.h>
    19 #include    <MSatShellController.h>
    21 #include    <cmmanager.h>
    20 #include    <cmmanager.h>
    22 #include    <cmconnectionmethod.h>
    21 #include    <cmconnectionmethod.h>
   210             {
   209             {
   211             LOG( NORMAL,
   210             LOG( NORMAL,
   212                 "LAUNCHBROWSER::Event ESetUpMenuRequested catched and unreg" )
   211                 "LAUNCHBROWSER::Event ESetUpMenuRequested catched and unreg" )
   213             iUtils->UnregisterEvent( this, MSatUtils::ESetUpMenuRequested );
   212             iUtils->UnregisterEvent( this, MSatUtils::ESetUpMenuRequested );
   214             // Browser is brought to the top after short period of time.
   213             // Browser is brought to the top after short period of time.
   215             //iUtils->SatUiHandler().ShellController().
   214             iUtils->SatUiHandler().ShellController().
   216             //    BringBrowserToForegroundAfterPeriod();
   215                 BringBrowserToForegroundAfterPeriod();
   217             break;
   216             break;
   218             }
   217             }
   219 
   218 
   220         default:
   219         default:
   221             {
   220             {
   808     LOG3( SIMPLE,
   807     LOG3( SIMPLE,
   809          "LAUNCHBROWSER: CLaunchBrowserHandler::LaunchWithUrlL\
   808          "LAUNCHBROWSER: CLaunchBrowserHandler::LaunchWithUrlL\
   810           url=%s, IAP=%d", &aParam, aAccessPointUid.iUid )        
   809           url=%s, IAP=%d", &aParam, aAccessPointUid.iUid )        
   811 
   810 
   812     // Browser launching called.
   811     // Browser launching called.
   813     //TInt err = iUtils->SatUiHandler().ShellController().LaunchBrowserL(
   812     TInt err = iUtils->SatUiHandler().ShellController().LaunchBrowserL(
   814     //    aParam, aAccessPointUid );
   813         aParam, aAccessPointUid );
   815     TInt err =  KErrNone;
       
   816 
   814 
   817     if ( KErrNone == err )
   815     if ( KErrNone == err )
   818         {
   816         {
   819         if ( !iQueryRsp.iRequestedIconDisplayed &&
   817         if ( !iQueryRsp.iRequestedIconDisplayed &&
   820             ( ( RSat::ESelfExplanatory ==
   818             ( ( RSat::ESelfExplanatory ==