uifw/AvKon/tsrc/bc/S60_SDK3.0/bctestlist/src/bctestListAppUi.cpp
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Avkon list test application
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <avkon.hrh>
       
    20 
       
    21 #include <aknsutils.h>
       
    22 
       
    23 #include "bctestlist.hrh"
       
    24 #include "bctestlistAppUi.h"                                        
       
    25 #include "bctestlistview.h"
       
    26 
       
    27 // ================= MEMBER FUNCTIONS =========================================
       
    28 //
       
    29 // ----------------------------------------------------------------------------
       
    30 // CBCTestListAppUi::CBCTestListAppUi()
       
    31 // Default constructor.
       
    32 // ----------------------------------------------------------------------------
       
    33 //
       
    34 CBCTestListAppUi::CBCTestListAppUi()
       
    35     {
       
    36     }
       
    37 
       
    38 // ----------------------------------------------------------------------------
       
    39 // void CBCTestListAppUi::ConstructL()
       
    40 // Symbian 2nd phase constructor can leave.
       
    41 // Creates view class object.
       
    42 // ----------------------------------------------------------------------------
       
    43 void CBCTestListAppUi::ConstructL()
       
    44     {
       
    45     BaseConstructL();
       
    46     AknsUtils::SetAvkonSkinEnabledL( ETrue );
       
    47     
       
    48     CBCTestListView* view = CBCTestListView::NewL();
       
    49     CleanupStack::PushL( view );
       
    50     AddViewL( view );
       
    51     CleanupStack::Pop( view );    
       
    52     
       
    53     ActivateLocalViewL( view->Id() );   
       
    54     }
       
    55 
       
    56 // ----------------------------------------------------------------------------
       
    57 // CBCTestListAppUi::~CBCTestListAppUi()
       
    58 // Destructor
       
    59 // ----------------------------------------------------------------------------
       
    60 CBCTestListAppUi::~CBCTestListAppUi()
       
    61     {
       
    62     }
       
    63 
       
    64 // ----------------------------------------------------------------------------
       
    65 // void CBCTestListAppUi::HandleCommandL( TInt )
       
    66 // Handles the commands.
       
    67 // ----------------------------------------------------------------------------
       
    68 void CBCTestListAppUi::HandleCommandL( TInt aCommand )
       
    69     {
       
    70     switch ( aCommand )
       
    71         {
       
    72         case EAknSoftkeyBack:
       
    73         case EEikCmdExit:
       
    74             Exit();
       
    75             break;
       
    76         
       
    77         default:
       
    78             break;
       
    79         }
       
    80     }
       
    81 
       
    82 // End of File