|
1 /* |
|
2 * Copyright (c) 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: bctestdomfntlay control api(s) |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <avkon.hrh> |
|
19 #include <aknsutils.h> |
|
20 |
|
21 #include "bctestdomfntlayappui.h" |
|
22 #include "bctestdomfntlay.hrh" |
|
23 #include "bctestdomfntlayview.h" |
|
24 |
|
25 // ======== MEMBER FUNCTIONS ======== |
|
26 |
|
27 // --------------------------------------------------------------------------- |
|
28 // ctro do nothing |
|
29 // --------------------------------------------------------------------------- |
|
30 // |
|
31 CBCTestDomFntlayAppUi::CBCTestDomFntlayAppUi() |
|
32 { |
|
33 } |
|
34 |
|
35 // --------------------------------------------------------------------------- |
|
36 // symbian 2nd phase ctor |
|
37 // --------------------------------------------------------------------------- |
|
38 // |
|
39 void CBCTestDomFntlayAppUi::ConstructL() |
|
40 { |
|
41 BaseConstructL(); |
|
42 AknsUtils::SetAvkonSkinEnabledL( ETrue ); |
|
43 |
|
44 // init view |
|
45 CBCTestDomFntlayView* view = CBCTestDomFntlayView::NewL(); |
|
46 CleanupStack::PushL( view ); |
|
47 AddViewL( view ); |
|
48 CleanupStack::Pop( view ); |
|
49 |
|
50 ActivateLocalViewL( view->Id() ); |
|
51 } |
|
52 |
|
53 // ---------------------------------------------------------------------------- |
|
54 // CBCTestDomFntlayAppUi::~CBCTestDomFntlayAppUi() |
|
55 // Destructor. |
|
56 // ---------------------------------------------------------------------------- |
|
57 // |
|
58 CBCTestDomFntlayAppUi::~CBCTestDomFntlayAppUi() |
|
59 { |
|
60 } |
|
61 |
|
62 // ---------------------------------------------------------------------------- |
|
63 // handle menu command events |
|
64 // ---------------------------------------------------------------------------- |
|
65 // |
|
66 void CBCTestDomFntlayAppUi::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 } |