1 /* |
|
2 * Copyright (c) 2007 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: Test Module DLL to Location Settings Launch API |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include <e32svr.h> |
|
23 #include <StifParser.h> |
|
24 #include <Stiftestinterface.h> |
|
25 #include <locsettingsuiclient.h> |
|
26 |
|
27 #include "testlocsettingsuiclient.h" |
|
28 #include "testlocsettingsuiclientao.h" |
|
29 |
|
30 |
|
31 // ============================ MEMBER FUNCTIONS =============================== |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // CTestLocSettingsUiClient::Delete |
|
35 // Delete here all resources allocated and opened from test methods. |
|
36 // Called from destructor. |
|
37 // ----------------------------------------------------------------------------- |
|
38 // |
|
39 void CTestLocSettingsUiClient::Delete() |
|
40 { |
|
41 if(iLocSettingsUiClientAO) |
|
42 { |
|
43 delete iLocSettingsUiClientAO; |
|
44 iLocSettingsUiClientAO = NULL; |
|
45 } |
|
46 } |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // CTestLocSettingsUiClient::RunMethodL |
|
50 // Run specified method. Contains also table of test mothods and their names. |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 TInt CTestLocSettingsUiClient::RunMethodL( |
|
54 CStifItemParser& aItem ) |
|
55 { |
|
56 |
|
57 static TStifFunctionInfo const KFunctions[] = |
|
58 { |
|
59 |
|
60 ENTRY( "TestNewL", CTestLocSettingsUiClient::TestNewL ), |
|
61 ENTRY( "TestNewLC", CTestLocSettingsUiClient::TestNewLC ), |
|
62 ENTRY( "TestLaunchSettingsL", CTestLocSettingsUiClient::TestLaunchSettingsL ), |
|
63 ENTRY( "TestCancelLaunchedSettingsUi", CTestLocSettingsUiClient::TestCancelLaunchedSettingsUi ), |
|
64 ENTRY( "TestCancelLaunchedSettingsUiErr", CTestLocSettingsUiClient::TestCancelLaunchedSettingsUiErr ), |
|
65 ENTRY( "TestClosePosSettings", CTestLocSettingsUiClient::TestClosePosSettings ), |
|
66 ENTRY( "TestClosePosSettingsErr", CTestLocSettingsUiClient::TestClosePosSettingsErr ), |
|
67 |
|
68 }; |
|
69 |
|
70 const TInt count = sizeof( KFunctions ) / |
|
71 sizeof( TStifFunctionInfo ); |
|
72 |
|
73 return RunInternalL( KFunctions, count, aItem ); |
|
74 |
|
75 } |
|
76 |
|
77 // --------------------------------------------------------- |
|
78 // CTestLocSettingsUiClient::TestNewL |
|
79 // |
|
80 // (other items are commented in a header). |
|
81 // --------------------------------------------------------- |
|
82 // |
|
83 TInt CTestLocSettingsUiClient::TestNewL( CStifItemParser& /*aItem*/ ) |
|
84 { |
|
85 return iLocSettingsUiClientAO->TestNewL(); |
|
86 } |
|
87 |
|
88 // --------------------------------------------------------- |
|
89 // CTestLocSettingsUiClient::TestNewLC |
|
90 // |
|
91 // (other items are commented in a header). |
|
92 // --------------------------------------------------------- |
|
93 // |
|
94 TInt CTestLocSettingsUiClient::TestNewLC( CStifItemParser& /*aItem*/ ) |
|
95 { |
|
96 return iLocSettingsUiClientAO->TestNewLC(); |
|
97 } |
|
98 |
|
99 // --------------------------------------------------------- |
|
100 // CTestLocSettingsUiClientAO::TestLaunchPosSettingsAsEmbeddedAppL |
|
101 // |
|
102 // (other items are commented in a header). |
|
103 // --------------------------------------------------------- |
|
104 // |
|
105 TInt CTestLocSettingsUiClient::TestLaunchSettingsL( |
|
106 CStifItemParser& aItem ) |
|
107 { |
|
108 TInt err = iLocSettingsUiClientAO->TestLaunchSettingsL(aItem); |
|
109 // CActiveScheduler::Start(); |
|
110 return err; |
|
111 } |
|
112 |
|
113 // --------------------------------------------------------- |
|
114 // CTestLocSettingsUiClientAO::TestCancelLaunchedSettingsUi |
|
115 // |
|
116 // (other items are commented in a header). |
|
117 // --------------------------------------------------------- |
|
118 // |
|
119 TInt CTestLocSettingsUiClient::TestCancelLaunchedSettingsUi(CStifItemParser& aItem) |
|
120 { |
|
121 TInt err = iLocSettingsUiClientAO->TestCancelLaunchedSettingsUi(aItem); |
|
122 return err; |
|
123 } |
|
124 |
|
125 // --------------------------------------------------------- |
|
126 // CTestLocSettingsUiClientAO::TestCancelLaunchedSettingsUi |
|
127 // |
|
128 // (other items are commented in a header). |
|
129 // --------------------------------------------------------- |
|
130 // |
|
131 TInt CTestLocSettingsUiClient::TestCancelLaunchedSettingsUiErr( CStifItemParser& /*aItem*/ ) |
|
132 { |
|
133 TInt err = iLocSettingsUiClientAO->TestCancelLaunchedSettingsUiErr(); |
|
134 return err; |
|
135 } |
|
136 |
|
137 // --------------------------------------------------------- |
|
138 // CTestLocSettingsUiClientAO::TestClosePosSettings |
|
139 // |
|
140 // (other items are commented in a header). |
|
141 // --------------------------------------------------------- |
|
142 // |
|
143 TInt CTestLocSettingsUiClient::TestClosePosSettings( CStifItemParser& /*aItem*/ ) |
|
144 { |
|
145 TInt err = iLocSettingsUiClientAO->TestClosePosSettings(); |
|
146 return err; ; |
|
147 } |
|
148 |
|
149 // --------------------------------------------------------- |
|
150 // CTestLocSettingsUiClientAO::TestClosePosSettings |
|
151 // |
|
152 // (other items are commented in a header). |
|
153 // --------------------------------------------------------- |
|
154 // |
|
155 TInt CTestLocSettingsUiClient::TestClosePosSettingsErr( CStifItemParser& /*aItem*/ ) |
|
156 { |
|
157 TInt err = iLocSettingsUiClientAO->TestClosePosSettingsErr(); |
|
158 return err; ; |
|
159 } |
|
160 |
|
161 // End of File |
|