1 /* |
|
2 * Copyright (c) 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * ============================================================================ |
|
20 * Name : SatelliteReferenceAppUi |
|
21 * Part of : Satellite Reference App |
|
22 * ============================================================================ |
|
23 */ |
|
24 |
|
25 #ifndef SATELLITE_REFERENCE_APPUI_H |
|
26 #define SATELLITE_REFERENCE_APPUI_H |
|
27 |
|
28 // INCLUDES |
|
29 #include <eikapp.h> |
|
30 #include <eikdoc.h> |
|
31 #include <e32std.h> |
|
32 #include <coeccntx.h> |
|
33 #include <aknappui.h> |
|
34 #include <aknapp.h> |
|
35 #include <CSatelliteInfoUI.h> |
|
36 |
|
37 // FORWARD DECLARATIONS |
|
38 class CSatelliteReferenceContainer; |
|
39 class CSatelliteInfoUI; |
|
40 |
|
41 |
|
42 // CLASS DECLARATION |
|
43 |
|
44 /** |
|
45 * Application UI class. |
|
46 * Provides support for the following features: |
|
47 * - EIKON control architecture |
|
48 */ |
|
49 class CSatelliteReferenceAppUi : public CAknAppUi |
|
50 { |
|
51 public: // // Constructors and destructor |
|
52 |
|
53 void ConstructL(); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 ~CSatelliteReferenceAppUi(); |
|
59 |
|
60 private: |
|
61 // From MEikMenuObserver |
|
62 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
|
63 |
|
64 private: |
|
65 /** |
|
66 * From CEikAppUi, takes care of command handling. |
|
67 * @param aCommand command to be handled |
|
68 */ |
|
69 void HandleCommandL(TInt aCommand); |
|
70 |
|
71 /** |
|
72 * From CEikAppUi, handles key events. |
|
73 * @param aKeyEvent Event to handled. |
|
74 * @param aType Type of the key event. |
|
75 * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). |
|
76 */ |
|
77 virtual TKeyResponse HandleKeyEventL( |
|
78 const TKeyEvent& aKeyEvent,TEventCode aType); |
|
79 |
|
80 /** |
|
81 * From CEikAppUi, handles the event when |
|
82 * the application is switch between foreground and |
|
83 * background |
|
84 */ |
|
85 void HandleForegroundEventL(TBool aForeground); |
|
86 |
|
87 private: //Data |
|
88 CSatelliteReferenceContainer* iAppContainer; |
|
89 |
|
90 /// Pointer to CSatelliteUI |
|
91 CSatelliteInfoUI* iSatelliteInfo; |
|
92 }; |
|
93 |
|
94 #endif |
|
95 |
|
96 // End of File |
|