iaupdate/IAD/launcher/src/iaupdatelauncherappui.cpp
branchRCL_3
changeset 25 7333d7932ef7
parent 24 5cc91383ab1e
child 26 8b7f4e561641
equal deleted inserted replaced
24:5cc91383ab1e 25:7333d7932ef7
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   This module contains the implementation of CIAUpdateLauncherAppUi class 
       
    15 *                member functions.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include "iaupdatelauncherappui.h"
       
    23 #include "iaupdatelaunchermanager.h"
       
    24 #include "iaupdatedebug.h"
       
    25 
       
    26 _LIT8( KRefreshFromNetworkDenied, "1" );
       
    27 
       
    28 
       
    29 // ============================ MEMBER FUNCTIONS ===============================
       
    30 
       
    31 
       
    32 // -----------------------------------------------------------------------------
       
    33 // CIAUpdateLauncherAppUi::ConstructL()
       
    34 // Symbian 2nd phase constructor can leave.
       
    35 // -----------------------------------------------------------------------------
       
    36 //
       
    37 void CIAUpdateLauncherAppUi::ConstructL()
       
    38     {
       
    39     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateLauncherAppUi::ConstructL() begin");
       
    40     // Initialise app UI with standard value.
       
    41     BaseConstructL( ENoAppResourceFile );
       
    42     StatusPane()->MakeVisible( EFalse );
       
    43     IAUPDATE_TRACE("[IAUPDATE] CIAUpdateLauncherAppUi::ConstructL() end");
       
    44     }
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // CIAUpdateLauncherrAppUi::CIAUpdateLauncherAppUi()
       
    48 // C++ default constructor can NOT contain any code, that might leave.
       
    49 // -----------------------------------------------------------------------------
       
    50 //
       
    51 CIAUpdateLauncherAppUi::CIAUpdateLauncherAppUi()
       
    52     {
       
    53     SetFullScreenApp( EFalse );
       
    54     }
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // CIAUpdateLauncherAppUi::~CIAUpdateLauncherAppUi()
       
    58 // Destructor.
       
    59 // -----------------------------------------------------------------------------
       
    60 //
       
    61 CIAUpdateLauncherAppUi::~CIAUpdateLauncherAppUi()
       
    62     {
       
    63     delete iLauncherManager;
       
    64     }
       
    65 
       
    66 // -----------------------------------------------------------------------------
       
    67 // CIAUpdateLauncherAppUi::HandleCommandL
       
    68 // 
       
    69 // -----------------------------------------------------------------------------
       
    70 //         
       
    71 void CIAUpdateLauncherAppUi::HandleCommandL( TInt aCommand )
       
    72     {
       
    73     switch(aCommand)
       
    74         {
       
    75         case EEikCmdExit:
       
    76         case EAknCmdExit:
       
    77         case EAknSoftkeyExit:
       
    78             {
       
    79             delete iLauncherManager;
       
    80             iLauncherManager = NULL;
       
    81             Exit();	
       
    82             break;
       
    83             }
       
    84              
       
    85         default:
       
    86             {
       
    87             break;
       
    88             }
       
    89         }
       
    90     }
       
    91 
       
    92 // -----------------------------------------------------------------------------
       
    93 // CIAUpdateLauncherAppUi::ProcessCommandParametersL
       
    94 // 
       
    95 // -----------------------------------------------------------------------------
       
    96 // 
       
    97 TBool CIAUpdateLauncherAppUi::ProcessCommandParametersL( TApaCommand /*aCommand*/,
       
    98                                                          TFileName& /*aDocumentName*/,
       
    99                                                          const TDesC8& aTail )
       
   100    {
       
   101    IAUPDATE_TRACE("[IAUPDATE] CIAUpdateLauncherAppUi::ProcessCommandParametersL() begin");
       
   102    if ( aTail == KRefreshFromNetworkDenied )
       
   103        {
       
   104    	   iRefreshFromNetworkDenied = ETrue;
       
   105        }
       
   106    iLauncherManager = CIAUpdateLauncherManager::NewL( iRefreshFromNetworkDenied );
       
   107 
       
   108    IAUPDATE_TRACE("[IAUPDATE] CIAUpdateLauncherAppUi::ProcessCommandParametersL() end");
       
   109    return ETrue;	
       
   110    }
       
   111     
       
   112 // End of File
       
   113