1 /* |
|
2 * Copyright (c) 2004-2005 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 * See class description below |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __TESTPROVIDER_APPUI_H_ |
|
21 #define __TESTPROVIDER_APPUI_H_ |
|
22 |
|
23 #include <aknviewappui.h> |
|
24 |
|
25 class CTestProviderAppView; |
|
26 class CTestProviderNaviView; |
|
27 class CTestProviderMapView; |
|
28 |
|
29 class CAknNavigationDecorator; |
|
30 class CAknNavigationControlContainer; |
|
31 |
|
32 /** |
|
33 * An instance of class CTestProviderAppUi is the UserInterface part of the Eikon |
|
34 * application framework for the TestProvider reference application |
|
35 */ |
|
36 class CTestProviderAppUi : public CAknAppUi |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * C++ default constructor. This needs to be public due to the way |
|
42 * the framework constructs the AppUi. |
|
43 */ |
|
44 CTestProviderAppUi(); |
|
45 |
|
46 /** |
|
47 * Symbian 2nd phase constructor. This needs to be public due to the way |
|
48 * the framework constructs the AppUi. |
|
49 */ |
|
50 void ConstructL(); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CTestProviderAppUi(); |
|
56 |
|
57 CTestProviderNaviView& ShowNaviViewL(); |
|
58 CTestProviderMapView& ShowMapViewL(); |
|
59 TBool IsAnyViewOpen(); |
|
60 TBool IsChainedMode(); |
|
61 void Exit( TInt aReason ); |
|
62 |
|
63 public: // from CEikAppUi |
|
64 |
|
65 /** |
|
66 * HandleCommandL handles user menu selections. |
|
67 * |
|
68 * @param aCommand the enumerated code for the option selected |
|
69 */ |
|
70 void HandleCommandL(TInt aCommand); |
|
71 |
|
72 TBool ProcessCommandParametersL( CApaCommandLine &aCommandLine ); |
|
73 |
|
74 public: // from MEikMenuObserver |
|
75 |
|
76 void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane *aMenuPane); |
|
77 |
|
78 private: |
|
79 |
|
80 /** |
|
81 * Performs the construction phase of this object that is dependent |
|
82 * that the application engine is initialized. |
|
83 */ |
|
84 void PostConstructL(); |
|
85 |
|
86 CEikStatusPane* StatusPane(); |
|
87 |
|
88 void SetNaviPaneTitleL( const TDesC& aPaneTitle ); |
|
89 |
|
90 private: // Data |
|
91 CTestProviderAppView* iAppView; |
|
92 CTestProviderNaviView* iNaviView; |
|
93 CTestProviderMapView* iMapView; |
|
94 |
|
95 //Own: |
|
96 CAknNavigationDecorator* iNaviLabel; |
|
97 |
|
98 //Ref: |
|
99 CAknNavigationControlContainer* iNaviPane; |
|
100 |
|
101 TInt iParentWg; |
|
102 /* |
|
103 private: |
|
104 class CShutter : public CTimer |
|
105 { |
|
106 public: |
|
107 CShutter( |
|
108 CTestProviderAppServer& aServer, |
|
109 CTestProviderAppUi& aAppUi ); |
|
110 void ConstructL(); |
|
111 void RunL(); |
|
112 void Go(); |
|
113 |
|
114 protected: |
|
115 CTestProviderAppServer& iServer; |
|
116 CTestProviderAppUi& iAppUi; |
|
117 }; |
|
118 |
|
119 private: |
|
120 CShutter* iShutter; |
|
121 */ |
|
122 }; |
|
123 |
|
124 #endif // __TESTPROVIDER_APPUI_H_ |
|
125 |
|