equal
deleted
inserted
replaced
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2007-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. |
11 // Contributors: |
11 // Contributors: |
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // |
14 // |
15 |
15 |
16 |
|
17 |
|
18 /** |
16 /** |
19 @file |
17 @file |
20 @test |
18 @test |
21 @internalComponent - Internal Symbian test code |
19 @internalComponent - Internal Symbian test code |
22 */ |
20 */ |
23 |
21 |
24 #include <eikappui.h> |
22 #include <eikappui.h> |
25 #include <eikapp.h> |
23 #include <eikapp.h> |
26 #include <eikdoc.h> |
24 #include <eikdoc.h> |
27 #include <eikenv.h> |
25 #include <eikenv.h> |
28 #include <EIKSTART.H> |
26 #include <eikstart.h> |
29 |
27 |
30 /** KTUnProtectedAppTestPassed is a number chosen at random to be used as an exit reason |
28 /** KTUnProtectedAppTestPassed is a number chosen at random to be used as an exit reason |
31 for UnProtectedApp.exe's application thread to signify that the test passed */ |
29 for UnProtectedApp.exe's application thread to signify that the test passed */ |
32 const TInt KTUnProtectedAppTestPassed = 1234; |
30 const TInt KTUnProtectedAppTestPassed = 1234; |
33 |
31 |
34 /////////////////////////////////////////////////////////////////////// |
32 // |
35 // |
33 // |
36 // CExampleAppUi |
34 // CExampleAppUi |
37 // |
35 // |
38 //////////////////////////////////////////////////////////////////////// |
36 // |
39 class CExampleAppUi : public CEikAppUi |
37 class CExampleAppUi : public CEikAppUi |
40 { |
38 { |
41 public: |
39 public: |
42 void ConstructL(); |
40 void ConstructL(); |
43 ~CExampleAppUi(); |
41 ~CExampleAppUi(); |
52 |
50 |
53 CExampleAppUi::~CExampleAppUi() |
51 CExampleAppUi::~CExampleAppUi() |
54 { |
52 { |
55 } |
53 } |
56 |
54 |
57 //////////////////////////////////////////////////////////////////////// |
55 // |
58 // |
56 // |
59 // CExampleDocument |
57 // CExampleDocument |
60 // |
58 // |
61 //////////////////////////////////////////////////////////////////////// |
59 // |
62 class CExampleDocument : public CEikDocument |
60 class CExampleDocument : public CEikDocument |
63 { |
61 { |
64 public: |
62 public: |
65 static CExampleDocument* NewL(CEikApplication& aApp); |
63 static CExampleDocument* NewL(CEikApplication& aApp); |
66 CExampleDocument(CEikApplication& aApp); |
64 CExampleDocument(CEikApplication& aApp); |
78 CEikAppUi* CExampleDocument::CreateAppUiL() |
76 CEikAppUi* CExampleDocument::CreateAppUiL() |
79 { |
77 { |
80 return new(ELeave) CExampleAppUi; |
78 return new(ELeave) CExampleAppUi; |
81 } |
79 } |
82 |
80 |
83 //////////////////////////////////////////////////////////////////////// |
81 // |
84 // |
82 // |
85 // CExampleApplication |
83 // CExampleApplication |
86 // |
84 // |
87 //////////////////////////////////////////////////////////////////////// |
85 // |
88 |
86 |
89 class CExampleApplication : public CEikApplication |
87 class CExampleApplication : public CEikApplication |
90 { |
88 { |
91 private: |
89 private: |
92 // Inherited from class CApaApplication |
90 // Inherited from class CApaApplication |