|
1 /* |
|
2 * Copyright (c) 2006-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: Declares UI class for application. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CBCTESTLAUNCHERAPPUI_H |
|
20 #define C_CBCTESTLAUNCHERAPPUI_H |
|
21 |
|
22 #include <eikapp.h> |
|
23 #include <eikdoc.h> |
|
24 #include <e32std.h> |
|
25 #include <coeccntx.h> |
|
26 #include <aknviewappui.h> |
|
27 #include <akntabgrp.h> |
|
28 #include <aknnavide.h> |
|
29 |
|
30 class CBCTestLauncherContainer; |
|
31 class CBCTestLauncherView; |
|
32 class CBCTestRunner; |
|
33 |
|
34 /** |
|
35 * Application UI class. |
|
36 */ |
|
37 class CBCTestLauncherAppUi : public CAknViewAppUi |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * C++ default constructor. |
|
43 */ |
|
44 CBCTestLauncherAppUi(); |
|
45 |
|
46 /** |
|
47 * Symbian 2nd phase constructor. |
|
48 */ |
|
49 void ConstructL(); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 virtual ~CBCTestLauncherAppUi(); |
|
55 |
|
56 void DoCommand(); |
|
57 |
|
58 private: // From CEikAppUi |
|
59 |
|
60 /** |
|
61 * From CEikAppUi, takes care of command handling. |
|
62 * @param aCommand command to be handled |
|
63 */ |
|
64 void HandleCommandL( TInt aCommand ); |
|
65 |
|
66 /** |
|
67 * From CEikAppUi, handles key events. |
|
68 * @param aKeyEvent Event to handled. |
|
69 * @param aType Type of the key event. |
|
70 * @return Reponse code ( EKeyWasConsumed, EKeyWasNotConsumed ). |
|
71 */ |
|
72 virtual TKeyResponse HandleKeyEventL( |
|
73 const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
74 |
|
75 private: //Data |
|
76 |
|
77 CAknNavigationControlContainer* iNaviPane; |
|
78 CBCTestLauncherContainer* iAppContainer; // Ptr to Container class |
|
79 CBCTestLauncherView* iAppView; |
|
80 CBCTestRunner* iRunner; // own |
|
81 |
|
82 }; |
|
83 |
|
84 #endif // C_CBCTESTLAUNCHERAPPUI_H |
|
85 |