|
1 /* |
|
2 ============================================================================ |
|
3 Name : NPRAppUi.h |
|
4 Author : John Kern |
|
5 |
|
6 Copyright (c) 2009 Symbian Foundation Ltd |
|
7 This component and the accompanying materials are made available |
|
8 under the terms of the License "Eclipse Public License v1.0" |
|
9 which accompanies this distribution, and is available |
|
10 at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
11 |
|
12 Initial Contributors: |
|
13 - Symbian Foundation Ltd - initial contribution. |
|
14 - Symsource |
|
15 |
|
16 Contributors: |
|
17 - John Kern |
|
18 - Symsource |
|
19 |
|
20 Description : Declares UI class for application. |
|
21 ============================================================================ |
|
22 */ |
|
23 |
|
24 /* |
|
25 ============================================================================ |
|
26 Name : NPRAppUi.h |
|
27 Author : John Kern |
|
28 Copyright (c) 2009 Symbian Foundation Ltd |
|
29 This component and the accompanying materials are made available |
|
30 under the terms of the License "Eclipse Public License v1.0" |
|
31 which accompanies this distribution, and is available |
|
32 at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
33 |
|
34 Initial Contributors: |
|
35 Symbian Foundation Ltd - initial contribution. |
|
36 |
|
37 Contributors: John Kern |
|
38 Description : Declares UI class for application. |
|
39 ============================================================================ |
|
40 */ |
|
41 |
|
42 #ifndef __NPR_APP_UI_h__ |
|
43 #define __NPR_APP_UI_h__ |
|
44 |
|
45 // INCLUDES |
|
46 #include <aknviewappui.h> |
|
47 |
|
48 // FORWARD DECLARATIONS |
|
49 class CNPRAppView; |
|
50 class CNPRAppEngine; |
|
51 |
|
52 // CLASS DECLARATION |
|
53 /** |
|
54 * CNPRAppUi application UI class. |
|
55 * Interacts with the user through the UI and request message processing |
|
56 * from the handler class |
|
57 */ |
|
58 class CNPRAppUi : public CAknViewAppUi |
|
59 { |
|
60 public: |
|
61 // Constructors and destructor |
|
62 |
|
63 /** |
|
64 * ConstructL. |
|
65 * 2nd phase constructor. |
|
66 */ |
|
67 void ConstructL(); |
|
68 |
|
69 /** |
|
70 * CNPRAppUi. |
|
71 * C++ default constructor. This needs to be public due to |
|
72 * the way the framework constructs the AppUi |
|
73 */ |
|
74 CNPRAppUi(); |
|
75 |
|
76 /** |
|
77 * ~CNPRAppUi. |
|
78 * Virtual Destructor. |
|
79 */ |
|
80 virtual ~CNPRAppUi(); |
|
81 |
|
82 CNPRAppEngine& Engine(); |
|
83 void ResponseStatusL(TInt aStatusCode, const TDesC& aStatusText); |
|
84 void ResponseReceivedL(const TDesC8& aResponseBuffer) ; |
|
85 |
|
86 private: |
|
87 // Functions from base classes |
|
88 |
|
89 /** |
|
90 * From CEikAppUi, HandleCommandL. |
|
91 * Takes care of command handling. |
|
92 * @param aCommand Command to be handled. |
|
93 */ |
|
94 void HandleCommandL(TInt aCommand); |
|
95 |
|
96 /** |
|
97 * HandleStatusPaneSizeChange. |
|
98 * Called by the framework when the application status pane |
|
99 * size is changed. |
|
100 */ |
|
101 void HandleStatusPaneSizeChange(); |
|
102 |
|
103 /** |
|
104 * From CCoeAppUi, HelpContextL. |
|
105 * Provides help context for the application. |
|
106 * size is changed. |
|
107 */ |
|
108 CArrayFix<TCoeHelpContext>* HelpContextL() const; |
|
109 |
|
110 private: |
|
111 // Data |
|
112 CNPRAppEngine* iNPRAppEngine; |
|
113 }; |
|
114 |
|
115 #endif // __NPR_APP_UI_h__ |
|
116 // End of File |