equal
deleted
inserted
replaced
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // |
14 // |
15 |
|
16 |
|
17 |
15 |
18 /** |
16 /** |
19 @file |
17 @file |
20 @internalComponent - Internal Symbian test code |
18 @internalComponent - Internal Symbian test code |
21 */ |
19 */ |
30 #include <apgtask.h> |
28 #include <apgtask.h> |
31 #include <eikenv.h> |
29 #include <eikenv.h> |
32 #include <eikappui.h> |
30 #include <eikappui.h> |
33 #include <eikapp.h> |
31 #include <eikapp.h> |
34 #include <eikdoc.h> |
32 #include <eikdoc.h> |
35 #include <eikmenup.h> |
33 #include <mw/eikmenup.h> |
36 #include <apgcli.h> |
34 #include <apgcli.h> |
37 |
35 |
38 #include <eikon.hrh> |
36 #include <mw/eikon.hrh> |
39 |
37 |
40 #include <App_CTRL2.rsg> |
38 #include <app_ctrl2.rsg> |
41 #include "App_CTRL2.hrh" |
39 #include "App_CTRL2.hrh" |
42 #include <eikstart.h> |
40 #include <eikstart.h> |
43 |
41 |
44 //////////////////////////////////////////////////////////////////////// |
42 // |
45 // |
43 // |
46 // CExampleAppView |
44 // CExampleAppView |
47 // |
45 // |
48 //////////////////////////////////////////////////////////////////////// |
46 // |
49 class CExampleAppView : public CCoeControl |
47 class CExampleAppView : public CCoeControl |
50 { |
48 { |
51 public: |
49 public: |
52 static CExampleAppView* NewL(const TRect& aRect); |
50 static CExampleAppView* NewL(const TRect& aRect); |
53 CExampleAppView(); |
51 CExampleAppView(); |
101 gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0); |
99 gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0); |
102 gc.DiscardFont(); |
100 gc.DiscardFont(); |
103 } |
101 } |
104 |
102 |
105 |
103 |
106 //////////////////////////////////////////////////////////////////////// |
104 // |
107 // |
105 // |
108 // CExampleAppUi |
106 // CExampleAppUi |
109 // |
107 // |
110 //////////////////////////////////////////////////////////////////////// |
108 // |
111 class CExampleAppUi : public CEikAppUi |
109 class CExampleAppUi : public CEikAppUi |
112 { |
110 { |
113 public: |
111 public: |
114 void ConstructL(); |
112 void ConstructL(); |
115 ~CExampleAppUi(); |
113 ~CExampleAppUi(); |
162 |
160 |
163 void CExampleAppUi::HandleSystemEventL(const TWsEvent& /*aEvent*/) |
161 void CExampleAppUi::HandleSystemEventL(const TWsEvent& /*aEvent*/) |
164 { |
162 { |
165 } |
163 } |
166 |
164 |
167 //////////////////////////////////////////////////////////////////////// |
165 // |
168 // |
166 // |
169 // CExampleDocument |
167 // CExampleDocument |
170 // |
168 // |
171 //////////////////////////////////////////////////////////////////////// |
169 // |
172 class CExampleDocument : public CEikDocument |
170 class CExampleDocument : public CEikDocument |
173 { |
171 { |
174 public: |
172 public: |
175 static CExampleDocument* NewL(CEikApplication& aApp); |
173 static CExampleDocument* NewL(CEikApplication& aApp); |
176 CExampleDocument(CEikApplication& aApp); |
174 CExampleDocument(CEikApplication& aApp); |
190 return new(ELeave) CExampleAppUi; |
188 return new(ELeave) CExampleAppUi; |
191 } |
189 } |
192 |
190 |
193 |
191 |
194 |
192 |
195 //////////////////////////////////////////////////////////////////////// |
193 // |
196 // |
194 // |
197 // CExampleApplication |
195 // CExampleApplication |
198 // |
196 // |
199 //////////////////////////////////////////////////////////////////////// |
197 // |
200 |
198 |
201 class CExampleApplication : public CEikApplication |
199 class CExampleApplication : public CEikApplication |
202 { |
200 { |
203 private: |
201 private: |
204 // Inherited from class CApaApplication |
202 // Inherited from class CApaApplication |
229 |
227 |
230 GLDEF_C TInt E32Main() |
228 GLDEF_C TInt E32Main() |
231 { |
229 { |
232 return EikStart::RunApplication(NewApplication); |
230 return EikStart::RunApplication(NewApplication); |
233 } |
231 } |
|
232 |
|
233 |
|
234 |