uifw/AvKon/tsrc/bc/S60_SDK3.0/bctestcmdlg/src/bctestcmdlgappui.cpp
changeset 22 75713bee6484
parent 21 558113899881
child 26 62ef28f7b435
child 28 d33307312dfe
equal deleted inserted replaced
21:558113899881 22:75713bee6484
     1 /*
       
     2 * Copyright (c) 2006 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:  test bc for template control api(s)
       
    15 *
       
    16 */
       
    17 
       
    18 #include <avkon.hrh>
       
    19 #include <aknsutils.h>
       
    20 
       
    21 #include "BCTestCmDlgAppUi.h"
       
    22 #include "BCTestCmDlg.hrh"
       
    23 #include "BCTestCmDlgview.h"
       
    24 
       
    25 // ======== MEMBER FUNCTIONS ========
       
    26 
       
    27 // ---------------------------------------------------------------------------
       
    28 // ctro do nothing
       
    29 // ---------------------------------------------------------------------------
       
    30 //
       
    31 CBCTestCmDlgAppUi::CBCTestCmDlgAppUi()
       
    32     {
       
    33     }
       
    34 
       
    35 // ---------------------------------------------------------------------------
       
    36 // symbian 2nd phase ctor
       
    37 // ---------------------------------------------------------------------------
       
    38 //
       
    39 void CBCTestCmDlgAppUi::ConstructL()
       
    40     {
       
    41     BaseConstructL();
       
    42     AknsUtils::SetAvkonSkinEnabledL( ETrue );
       
    43 
       
    44     // init view
       
    45     CBCTestCmDlgView* view = CBCTestCmDlgView::NewL();
       
    46     CleanupStack::PushL( view );
       
    47     AddViewL( view );
       
    48     CleanupStack::Pop( view );    
       
    49     
       
    50     ActivateLocalViewL( view->Id() );
       
    51     }
       
    52 
       
    53 // ----------------------------------------------------------------------------
       
    54 // CBCTestCmDlgAppUi::~CBCTestCmDlgAppUi()
       
    55 // Destructor.
       
    56 // ----------------------------------------------------------------------------
       
    57 //
       
    58 CBCTestCmDlgAppUi::~CBCTestCmDlgAppUi()
       
    59     { 
       
    60     }
       
    61 
       
    62 // ----------------------------------------------------------------------------
       
    63 // handle menu command events
       
    64 // ----------------------------------------------------------------------------
       
    65 //
       
    66 void CBCTestCmDlgAppUi::HandleCommandL( TInt aCommand )
       
    67     {
       
    68     switch ( aCommand )
       
    69         {
       
    70         case EAknSoftkeyBack:
       
    71         case EEikCmdExit:
       
    72             {
       
    73             Exit();
       
    74             return;
       
    75             }
       
    76         default:
       
    77             break;
       
    78         }    
       
    79     }
       
    80 
       
    81 // End of File