classicui_plat/personalisation_framework_api/tsrc/src/testdompslnfwappui.cpp
changeset 21 558113899881
parent 14 3320e4e6e8bb
child 22 75713bee6484
child 33 b3425bf29f82
equal deleted inserted replaced
14:3320e4e6e8bb 21:558113899881
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 #include "testdompslnfwbv.h"
       
    19 
       
    20 #include "testdompslnfwappui.h"
       
    21 
       
    22 //===============================CTestDOMPslnFWAppUi==========================
       
    23 //
       
    24 // ---------------------------------------------------------------------------
       
    25 // CTestDOMPslnFWAppUi::CTestDOMPslnFWAppUi()
       
    26 // ---------------------------------------------------------------------------
       
    27 //  
       
    28 CTestDOMPslnFWAppUi::CTestDOMPslnFWAppUi()
       
    29     {
       
    30 
       
    31     }
       
    32 
       
    33 // ---------------------------------------------------------------------------
       
    34 // CTestDOMPslnFWAppUi::~CTestDOMPslnFWAppUi()
       
    35 // ---------------------------------------------------------------------------
       
    36 //  
       
    37 CTestDOMPslnFWAppUi::~CTestDOMPslnFWAppUi()
       
    38     {
       
    39     delete iFWBView;
       
    40     iFWBView = NULL;
       
    41     }
       
    42 
       
    43 void CTestDOMPslnFWAppUi::InitializeContainersL()
       
    44     {
       
    45     iFWBView = new( ELeave ) CTestPslnFWBaseView();
       
    46     AddViewL( iFWBView );
       
    47     SetDefaultViewL( *iFWBView );
       
    48     }
       
    49 
       
    50 // ---------------------------------------------------------------------------
       
    51 // CTestDOMPslnFWAppUi::HandleCommandL()
       
    52 // ---------------------------------------------------------------------------
       
    53 //  
       
    54 void CTestDOMPslnFWAppUi::HandleCommandL( TInt aCommand )
       
    55     {
       
    56     TBool commandHandled = EFalse;
       
    57     switch ( aCommand )
       
    58         {
       
    59         default:
       
    60             break;
       
    61         }
       
    62     
       
    63         
       
    64     if ( !commandHandled ) 
       
    65         {
       
    66         if ( aCommand == EAknSoftkeyExit || aCommand == EEikCmdExit )
       
    67             {
       
    68             Exit();
       
    69             }
       
    70         }
       
    71     }
       
    72 
       
    73 // ---------------------------------------------------------------------------
       
    74 // CTestDOMPslnFWAppUi::HandleResourceChangeL()
       
    75 // ---------------------------------------------------------------------------
       
    76 //  
       
    77 void CTestDOMPslnFWAppUi::HandleResourceChangeL( TInt aType )
       
    78     {
       
    79     CAknViewAppUi::HandleResourceChangeL( aType );
       
    80     
       
    81     }
       
    82                 
       
    83 // ---------------------------------------------------------------------------
       
    84 // CTestDOMPslnFWAppUi::HandleKeyEventL()
       
    85 // ---------------------------------------------------------------------------
       
    86 //  
       
    87 TKeyResponse CTestDOMPslnFWAppUi::HandleKeyEventL(
       
    88         const TKeyEvent& /*aKeyEvent*/, TEventCode /*aType*/ )
       
    89     {
       
    90     return EKeyWasNotConsumed;
       
    91     }
       
    92 
       
    93 // ---------------------------------------------------------------------------
       
    94 // CTestDOMPslnFWAppUi::HandleViewDeactivation()
       
    95 // ---------------------------------------------------------------------------
       
    96 //  
       
    97 void CTestDOMPslnFWAppUi::HandleViewDeactivation( 
       
    98         const TVwsViewId& aViewIdToBeDeactivated, 
       
    99         const TVwsViewId& aNewlyActivatedViewId )
       
   100     {
       
   101     CAknViewAppUi::HandleViewDeactivation( 
       
   102             aViewIdToBeDeactivated, 
       
   103             aNewlyActivatedViewId );
       
   104     }
       
   105 
       
   106 // ---------------------------------------------------------------------------
       
   107 // CTestDOMPslnFWAppUi::ConstructL()
       
   108 // ---------------------------------------------------------------------------
       
   109 //  
       
   110 void CTestDOMPslnFWAppUi::ConstructL()
       
   111     {
       
   112     BaseConstructL( ); 
       
   113     InitializeContainersL();
       
   114     iFWBView->HandleCommandL( 0 );
       
   115     }
       
   116