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 #ifndef TESTLOCSETTINGSUICLIENT_H |
|
22 #define TESTLOCSETTINGSUICLIENT_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <StifLogger.h> |
|
26 #include <TestScripterInternal.h> |
|
27 #include <StifTestModule.h> |
|
28 |
|
29 |
|
30 // CONSTANTS |
|
31 _LIT( KtestlocsettingsuiclientLogPath, "\\logs\\testframework\\testlocsettingsuiclient\\" ); |
|
32 _LIT( KtestlocsettingsuiclientLogFile, "testlocsettingsuiclient.txt" ); |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 class CTestLocSettingsUiClient; |
|
36 class CTestLocSettingsUiClientAO; |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 /** |
|
41 * CTestLocSettingsUiClient test class for STIF Test Framework TestScripter. |
|
42 * This is the testclass for Location Settings Launch API |
|
43 * |
|
44 * @lib testlocsettingsuiclient.lib |
|
45 * @since S60 v3.2 |
|
46 */ |
|
47 |
|
48 NONSHARABLE_CLASS(CTestLocSettingsUiClient) : public CScriptBase |
|
49 { |
|
50 public: // Constructors and destructor |
|
51 |
|
52 /** |
|
53 * Two-phased constructor. |
|
54 */ |
|
55 static CTestLocSettingsUiClient* NewL( CTestModuleIf& aTestModuleIf ); |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 virtual ~CTestLocSettingsUiClient(); |
|
61 |
|
62 public: // New functions |
|
63 |
|
64 public: // Functions from base classes |
|
65 |
|
66 /** |
|
67 * From CScriptBase Runs a script line. |
|
68 * @since S60 v3.2 |
|
69 * @param aItem Script line containing method name and parameters |
|
70 * @return Symbian OS error code |
|
71 */ |
|
72 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
73 |
|
74 private: |
|
75 |
|
76 /** |
|
77 * C++ default constructor. |
|
78 */ |
|
79 CTestLocSettingsUiClient( CTestModuleIf& aTestModuleIf ); |
|
80 |
|
81 /** |
|
82 * By default Symbian 2nd phase constructor is private. |
|
83 */ |
|
84 void ConstructL(); |
|
85 |
|
86 /** |
|
87 * Frees all resources allocated from test methods. |
|
88 * @since S60 v3.2 |
|
89 */ |
|
90 void Delete(); |
|
91 |
|
92 /** |
|
93 * Test Case for create a new instance of |
|
94 * CLocSettingsUiClient with NewL |
|
95 * |
|
96 * @since S60 v3.2 |
|
97 * Returns KErrNone if successful. |
|
98 * |
|
99 */ |
|
100 TInt TestNewL( CStifItemParser& aItem ); |
|
101 |
|
102 /** |
|
103 * Test Case for create a new instance of |
|
104 * CLocSettingsUiClient with NewLC |
|
105 * |
|
106 * @since S60 v3.2 |
|
107 * Returns KErrNone if successful. |
|
108 * |
|
109 */ |
|
110 TInt TestNewLC( CStifItemParser& aItem ); |
|
111 |
|
112 /** |
|
113 * Test Case for Launching Settings Ui |
|
114 * CLocSettingsUiClient |
|
115 * |
|
116 * @since S60 v3.2 |
|
117 * Returns KErrNone if successful. |
|
118 * |
|
119 */ |
|
120 TInt TestLaunchSettingsL( CStifItemParser& aItem ); |
|
121 |
|
122 /** |
|
123 * Test Case for Cancelling a Launch of Settings Ui |
|
124 * CLocSettingsUiClient |
|
125 * |
|
126 * @since S60 v3.2 |
|
127 * Returns KErrNone if successful. |
|
128 * |
|
129 */ |
|
130 TInt TestCancelLaunchedSettingsUi(CStifItemParser& aItem); |
|
131 |
|
132 /** |
|
133 * Test Case for Cancelling a Launch of Settings Ui |
|
134 * which results in Error |
|
135 * |
|
136 * @since S60 v3.2 |
|
137 * Returns KErrNone if successful. |
|
138 * |
|
139 */ |
|
140 TInt TestCancelLaunchedSettingsUiErr( CStifItemParser& aItem ); |
|
141 |
|
142 /** |
|
143 * Test Case for Closing a Position Settings |
|
144 * CLocSettingsUiClient |
|
145 * |
|
146 * @since S60 v3.2 |
|
147 * Returns KErrNone if successful. |
|
148 * |
|
149 */ |
|
150 TInt TestClosePosSettings( CStifItemParser& aItem ); |
|
151 |
|
152 /** |
|
153 * Test Case for Closing a Position Settings |
|
154 * which results in Error |
|
155 * |
|
156 * @since S60 v3.2 |
|
157 * Returns KErrNone if successful. |
|
158 * |
|
159 */ |
|
160 TInt TestClosePosSettingsErr( CStifItemParser& aItem ); |
|
161 |
|
162 private: // Data |
|
163 /** |
|
164 * Tester Class for CTestLocSettingsUiClient API methods |
|
165 */ |
|
166 CTestLocSettingsUiClientAO* iLocSettingsUiClientAO; |
|
167 |
|
168 }; |
|
169 |
|
170 #endif // TESTLOCSETTINGSUICLIENT_H |
|
171 |
|
172 // End of File |
|