|
1 /* |
|
2 * Copyright (c) 2005-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 /************************************************************************* |
|
21 * |
|
22 * Switches |
|
23 * |
|
24 ************************************************************************/ |
|
25 #ifndef __STATAPPLICATION_H__ |
|
26 #define __STATAPPLICATION_H__ |
|
27 |
|
28 /************************************************************************* |
|
29 * |
|
30 * System Includes |
|
31 * |
|
32 ************************************************************************/ |
|
33 #include <coeccntx.h> |
|
34 #include <eikenv.h> |
|
35 #include <eikappui.h> |
|
36 #include <eikapp.h> |
|
37 #include <eikdoc.h> |
|
38 #include <eikmenup.h> |
|
39 |
|
40 /************************************************************************* |
|
41 * |
|
42 * Local Includes |
|
43 * |
|
44 ************************************************************************/ |
|
45 #include <statgui.rsg> |
|
46 #include "statapi.hrh" |
|
47 #include "stat_window.h" |
|
48 #include "stat_tcpip.h" |
|
49 #include "stat_controller.h" |
|
50 |
|
51 #ifdef SYMBIAN_DIST_SERIES60 |
|
52 #include <aknappui.h> |
|
53 #endif |
|
54 |
|
55 /************************************************************************* |
|
56 * |
|
57 * Definitions |
|
58 * |
|
59 ************************************************************************/ |
|
60 #ifdef SYMBIAN_DIST_SERIES60 |
|
61 #define CPlatAppUi CAknAppUi |
|
62 #else |
|
63 #define CPlatAppUi CEikAppUi |
|
64 #endif |
|
65 |
|
66 /************************************************************************* |
|
67 * |
|
68 * CStatApplication |
|
69 * |
|
70 ************************************************************************/ |
|
71 class CStatApplication : public CEikApplication |
|
72 { |
|
73 private: |
|
74 CApaDocument* CreateDocumentL(); |
|
75 TUid AppDllUid() const; |
|
76 }; |
|
77 |
|
78 /************************************************************************* |
|
79 * |
|
80 * CStatDocument |
|
81 * |
|
82 ************************************************************************/ |
|
83 class CStatDocument : public CEikDocument |
|
84 { |
|
85 public: |
|
86 static CStatDocument* NewL(CEikApplication& aApp); |
|
87 CStatDocument(CEikApplication& aApp); |
|
88 void ConstructL(); |
|
89 |
|
90 private: |
|
91 CEikAppUi* CreateAppUiL(); |
|
92 }; |
|
93 |
|
94 /************************************************************************* |
|
95 * |
|
96 * CStatAppUi |
|
97 * |
|
98 ************************************************************************/ |
|
99 class CStatAppUi : public CPlatAppUi, public MCoeControlObserver |
|
100 { |
|
101 public: |
|
102 void ConstructL(); |
|
103 ~CStatAppUi(); |
|
104 |
|
105 // From CEikAppUi |
|
106 TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
107 void HandleCommandL( TInt aCommand ); |
|
108 void HandleForegroundEventL(TBool aForeground); |
|
109 |
|
110 // From MCoeControlObserver |
|
111 void HandleControlEventL( CCoeControl* aControl, TCoeEvent aEventType ); |
|
112 |
|
113 private: |
|
114 CStatController *iController; |
|
115 CStatWindow *iWindow; |
|
116 }; |
|
117 |
|
118 |
|
119 |
|
120 #endif //__STATAPPLICATION_H__ |
|
121 |