|
1 /* |
|
2 * Copyright (c) 2007-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 the License "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 #ifndef __TESTAPPMNGUI_APPUI_H__ |
|
20 #define __TESTAPPMNGUI_APPUI_H__ |
|
21 |
|
22 #include <aknappui.h> |
|
23 |
|
24 // Forward reference |
|
25 class CtestappmnguiAppView; |
|
26 |
|
27 /*! |
|
28 @class CtestappmnguiAppUi |
|
29 |
|
30 @discussion An instance of class CtestappmnguiAppUi is the UserInterface part of the AVKON |
|
31 application framework for the testappmngui example application |
|
32 */ |
|
33 class CtestappmnguiAppUi : public CAknAppUi |
|
34 { |
|
35 public: |
|
36 /*! |
|
37 @function ConstructL |
|
38 |
|
39 @discussion Perform the second phase construction of a CtestappmnguiAppUi object |
|
40 this needs to be public due to the way the framework constructs the AppUi |
|
41 */ |
|
42 void ConstructL(); |
|
43 |
|
44 /*! |
|
45 @function CtestappmnguiAppUi |
|
46 |
|
47 @discussion Perform the first phase of two phase construction. |
|
48 This needs to be public due to the way the framework constructs the AppUi |
|
49 */ |
|
50 CtestappmnguiAppUi(); |
|
51 |
|
52 |
|
53 /*! |
|
54 @function ~CtestappmnguiAppUi |
|
55 |
|
56 @discussion Destroy the object and release all memory objects |
|
57 */ |
|
58 ~CtestappmnguiAppUi(); |
|
59 |
|
60 |
|
61 public: // from CAknAppUi |
|
62 /*! |
|
63 @function HandleCommandL |
|
64 |
|
65 @discussion Handle user menu selections |
|
66 @param aCommand the enumerated code for the option selected |
|
67 */ |
|
68 void HandleCommandL(TInt aCommand); |
|
69 |
|
70 private: |
|
71 /*! @var iAppView The application view */ |
|
72 TInt GetBufferFromFile(HBufC8*& aBuffer, const TDesC& aFileName); |
|
73 CtestappmnguiAppView* iAppView; |
|
74 }; |
|
75 |
|
76 |
|
77 #endif // __TESTAPPMNGUI_APPUI_H__ |
|
78 |