|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #include <eikstart.h> |
|
23 #include <fbs.h> |
|
24 #include <apgwgnam.h> |
|
25 #include "tcaptiontest.h" |
|
26 |
|
27 // |
|
28 // |
|
29 // CNameTestAppUi |
|
30 // |
|
31 // |
|
32 |
|
33 CNameTestAppUi::CNameTestAppUi() : CTestAppUi(NULL, KNullDesC) |
|
34 { |
|
35 } |
|
36 |
|
37 void CNameTestAppUi::ConstructL() |
|
38 { |
|
39 CTestAppUi::ConstructL(); |
|
40 AutoTestManager().StartAutoTest(); |
|
41 //BaseConstructL(); |
|
42 } |
|
43 |
|
44 CNameTestAppUi::~CNameTestAppUi() |
|
45 { |
|
46 } |
|
47 |
|
48 void CNameTestAppUi::HandleCommandL(TInt /*aCommand*/) |
|
49 { |
|
50 } |
|
51 |
|
52 |
|
53 void CNameTestAppUi::RunTestStepL(TInt /*aNumStep*/) |
|
54 { |
|
55 RProcess().Terminate(KErrNone); |
|
56 } |
|
57 |
|
58 |
|
59 // |
|
60 // |
|
61 // CNameTestDocument |
|
62 // |
|
63 // |
|
64 CNameTestDocument::CNameTestDocument(CEikApplication& aApp) |
|
65 : CEikDocument(aApp) |
|
66 { |
|
67 } |
|
68 |
|
69 CEikAppUi* CNameTestDocument::CreateAppUiL() |
|
70 { |
|
71 return new (ELeave) CNameTestAppUi(); |
|
72 } |
|
73 |
|
74 |
|
75 // |
|
76 // |
|
77 // CNameTestApplication |
|
78 // |
|
79 // |
|
80 TUid CNameTestApplication::AppDllUid() const |
|
81 { |
|
82 return KUidNameTest; |
|
83 } |
|
84 |
|
85 CApaDocument* CNameTestApplication::CreateDocumentL() |
|
86 { |
|
87 return new (ELeave) CNameTestDocument(*this); |
|
88 } |
|
89 |
|
90 LOCAL_C CApaApplication* NewApplication() |
|
91 { |
|
92 return new CNameTestApplication; |
|
93 } |
|
94 |
|
95 GLDEF_C TInt E32Main() |
|
96 { |
|
97 return EikStart::RunApplication(NewApplication); |
|
98 } |
|
99 |
|
100 |
|
101 |