classicui_pub/tsrc/bc/apps/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-2009 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 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #include <avkon.hrh>
       
    26 #include <aknsutils.h>
       
    27 
       
    28 #include "BCTestCmDlgAppUi.h"
       
    29 #include "BCTestCmDlg.hrh"
       
    30 #include "BCTestCmDlgview.h"
       
    31 
       
    32 // ======== MEMBER FUNCTIONS ========
       
    33 
       
    34 // ---------------------------------------------------------------------------
       
    35 // ctro do nothing
       
    36 // ---------------------------------------------------------------------------
       
    37 //
       
    38 CBCTestCmDlgAppUi::CBCTestCmDlgAppUi()
       
    39     {
       
    40     }
       
    41 
       
    42 // ---------------------------------------------------------------------------
       
    43 // symbian 2nd phase ctor
       
    44 // ---------------------------------------------------------------------------
       
    45 //
       
    46 void CBCTestCmDlgAppUi::ConstructL()
       
    47     {
       
    48     BaseConstructL();
       
    49     AknsUtils::SetAvkonSkinEnabledL( ETrue );
       
    50 
       
    51     // init view
       
    52     CBCTestCmDlgView* view = CBCTestCmDlgView::NewL();
       
    53     CleanupStack::PushL( view );
       
    54     AddViewL( view );
       
    55     CleanupStack::Pop( view );    
       
    56     
       
    57     ActivateLocalViewL( view->Id() );
       
    58     }
       
    59 
       
    60 // ----------------------------------------------------------------------------
       
    61 // CBCTestCmDlgAppUi::~CBCTestCmDlgAppUi()
       
    62 // Destructor.
       
    63 // ----------------------------------------------------------------------------
       
    64 //
       
    65 CBCTestCmDlgAppUi::~CBCTestCmDlgAppUi()
       
    66     { 
       
    67     }
       
    68 
       
    69 // ----------------------------------------------------------------------------
       
    70 // handle menu command events
       
    71 // ----------------------------------------------------------------------------
       
    72 //
       
    73 void CBCTestCmDlgAppUi::HandleCommandL( TInt aCommand )
       
    74     {
       
    75     switch ( aCommand )
       
    76         {
       
    77         case EAknSoftkeyBack:
       
    78         case EEikCmdExit:
       
    79             {
       
    80             Exit();
       
    81             return;
       
    82             }
       
    83         default:
       
    84             break;
       
    85         }    
       
    86     }
       
    87 
       
    88 // End of File