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. |
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // A simple application containing a single view with the text "Child III !" drawn on it. |
14 // A simple application containing a single view with the text "Child III !" drawn on it. |
15 // |
15 // |
16 // |
16 // |
17 |
|
18 |
|
19 |
17 |
20 /** |
18 /** |
21 @file |
19 @file |
22 @internalComponent - Internal Symbian test code |
20 @internalComponent - Internal Symbian test code |
23 */ |
21 */ |
26 |
24 |
27 #include <eikenv.h> |
25 #include <eikenv.h> |
28 #include <eikappui.h> |
26 #include <eikappui.h> |
29 #include <eikapp.h> |
27 #include <eikapp.h> |
30 #include <eikdoc.h> |
28 #include <eikdoc.h> |
31 #include <eikmenup.h> |
29 #include <mw/eikmenup.h> |
32 |
30 |
33 #include <eikon.hrh> |
31 #include <mw/eikon.hrh> |
34 #include <f32file.h> |
32 #include <f32file.h> |
35 |
33 |
36 #include <ChildIII.rsg> |
34 #include <childiii.rsg> |
37 #include "ChildIII.hrh" |
35 #include "ChildIII.hrh" |
38 |
36 |
39 |
37 |
40 #include <eikstart.h> |
38 #include <eikstart.h> |
41 _LIT(KFilePath,"c:\\logs\\TestExecute\\Proc.txt"); |
39 _LIT(KFilePath,"c:\\logs\\TestExecute\\Proc.txt"); |
42 _LIT8(KTPass, "PASS"); |
40 _LIT8(KTPass, "PASS"); |
43 _LIT8(KTFail, "FAIL"); |
41 _LIT8(KTFail, "FAIL"); |
44 |
42 |
45 //////////////////////////////////////////////////////////////////////// |
43 // |
46 // |
44 // |
47 // CExampleAppView |
45 // CExampleAppView |
48 // |
46 // |
49 //////////////////////////////////////////////////////////////////////// |
47 // |
50 |
48 |
51 class CExampleAppView : public CCoeControl |
49 class CExampleAppView : public CCoeControl |
52 { |
50 { |
53 public: |
51 public: |
54 static CExampleAppView* NewL(const TRect& aRect); |
52 static CExampleAppView* NewL(const TRect& aRect); |
142 gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0); |
140 gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0); |
143 // Finished using the font |
141 // Finished using the font |
144 gc.DiscardFont(); |
142 gc.DiscardFont(); |
145 } |
143 } |
146 |
144 |
147 //////////////////////////////////////////////////////////////////////// |
145 // |
148 // |
146 // |
149 // CExampleAppUi |
147 // CExampleAppUi |
150 // |
148 // |
151 //////////////////////////////////////////////////////////////////////// |
149 // |
152 |
150 |
153 class CExampleAppUi : public CEikAppUi |
151 class CExampleAppUi : public CEikAppUi |
154 { |
152 { |
155 public: |
153 public: |
156 void ConstructL(); |
154 void ConstructL(); |
261 iFile.Close(); |
259 iFile.Close(); |
262 iFs.Close(); |
260 iFs.Close(); |
263 } |
261 } |
264 } |
262 } |
265 |
263 |
266 //////////////////////////////////////////////////////////////////////// |
264 // |
267 // |
265 // |
268 // CExampleDocument |
266 // CExampleDocument |
269 // |
267 // |
270 //////////////////////////////////////////////////////////////////////// |
268 // |
271 class CExampleDocument : public CEikDocument |
269 class CExampleDocument : public CEikDocument |
272 { |
270 { |
273 public: |
271 public: |
274 static CExampleDocument* NewL(CEikApplication& aApp); |
272 static CExampleDocument* NewL(CEikApplication& aApp); |
275 CExampleDocument(CEikApplication& aApp); |
273 CExampleDocument(CEikApplication& aApp); |
297 CEikAppUi* CExampleDocument::CreateAppUiL() |
295 CEikAppUi* CExampleDocument::CreateAppUiL() |
298 { |
296 { |
299 return new(ELeave) CExampleAppUi; |
297 return new(ELeave) CExampleAppUi; |
300 } |
298 } |
301 |
299 |
302 //////////////////////////////////////////////////////////////////////// |
300 // |
303 // |
301 // |
304 // CExampleApplication |
302 // CExampleApplication |
305 // |
303 // |
306 //////////////////////////////////////////////////////////////////////// |
304 // |
307 |
305 |
308 class CExampleApplication : public CEikApplication |
306 class CExampleApplication : public CEikApplication |
309 { |
307 { |
310 private: |
308 private: |
311 // Inherited from class CApaApplication |
309 // Inherited from class CApaApplication |