|
1 /* |
|
2 * Copyright (c) 2005-2006 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: MT_SSSettings |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __MT_SSSETTINGS_H__ |
|
20 #define __MT_SSSETTINGS_H__ |
|
21 |
|
22 // EXTERNAL INCLUDES |
|
23 #include <CEUnitTestSuiteClass.h> |
|
24 #include <etelmm.h> |
|
25 #include <MSSSettingsObserver.h> |
|
26 #include <MSSSettingsRefreshObserver.h> |
|
27 #include <MSSSettingsRefreshHandler.h> |
|
28 #include <MSatRefreshObserver.h> |
|
29 #include <etelsat.h> |
|
30 |
|
31 // INTERNAL INCLUDES |
|
32 |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 class RCustomerServiceProfileCache; |
|
36 class RSSSettings; |
|
37 class CSSSettingsRefreshContainer; |
|
38 |
|
39 #include <e32def.h> |
|
40 #ifndef NONSHARABLE_CLASS |
|
41 #define NONSHARABLE_CLASS(x) class x |
|
42 #endif |
|
43 |
|
44 // CLASS DEFINITION |
|
45 /** |
|
46 * |
|
47 * EUnitWizard generated test class. |
|
48 * |
|
49 */ |
|
50 NONSHARABLE_CLASS( MT_SSSettings ) |
|
51 : public CEUnitTestSuiteClass, |
|
52 public MSSSettingsObserver, |
|
53 public MSSSettingsRefreshObserver, |
|
54 public MSSSettingsRefreshHandler |
|
55 { |
|
56 public: // Constructors and destructors |
|
57 |
|
58 /** |
|
59 * Two phase construction |
|
60 */ |
|
61 static MT_SSSettings* NewL(); |
|
62 static MT_SSSettings* NewLC(); |
|
63 /** |
|
64 * Destructor |
|
65 */ |
|
66 ~MT_SSSettings(); |
|
67 |
|
68 private: // Constructors and destructors |
|
69 |
|
70 MT_SSSettings(); |
|
71 void ConstructL(); |
|
72 |
|
73 public: // From observer interface |
|
74 |
|
75 // From MSSSettingsObserver. |
|
76 void PhoneSettingChanged( TSSSettingsSetting /*aSetting*/, |
|
77 TInt /*aNewValue*/ ); |
|
78 |
|
79 // From MSSSettingsRefreshHandler. |
|
80 void NotifyFileChangeL( |
|
81 MSSSettingsRefreshObserver& /*aObserver*/, |
|
82 TSatElementaryFiles /*aObservedFile*/, |
|
83 TSatRefreshType /*aObservedRefreshType*/); |
|
84 |
|
85 // From MSSSettingsRefreshHandler. |
|
86 void CancelNotify(); |
|
87 |
|
88 // From MSSSettingsRefreshHandler. |
|
89 TInt ChangedCspTable( TDes8& /*aChangedCsps*/, |
|
90 TDes8& /*aNewValues*/ ); |
|
91 |
|
92 // From MSSSettingsRefreshObserver. |
|
93 TBool AllowRefresh( |
|
94 const TSatRefreshType /*aType*/, |
|
95 const TSatElementaryFiles /*aFiles*/ ); |
|
96 |
|
97 // From MSSSettingsRefreshObserver. |
|
98 void Refresh( |
|
99 const TSatRefreshType /*aType*/, |
|
100 const TSatElementaryFiles /*aFiles*/ ); |
|
101 |
|
102 |
|
103 private: // New methods |
|
104 |
|
105 void EmptySetupL(); |
|
106 |
|
107 void EmptyTeardown(); |
|
108 |
|
109 void SetupL(); |
|
110 |
|
111 void Teardown(); |
|
112 |
|
113 void CSPSetupL(); |
|
114 |
|
115 void CSPTeardown(); |
|
116 |
|
117 void MT_CSSSettingsRefreshContainer_NewLL(); |
|
118 |
|
119 |
|
120 void MT_RCustomerServiceProfileCache_CspCallCompletionL(); |
|
121 |
|
122 |
|
123 void MT_RCustomerServiceProfileCache_CspCallOfferingL(); |
|
124 |
|
125 |
|
126 void MT_RCustomerServiceProfileCache_CspCallRestrictionL(); |
|
127 |
|
128 |
|
129 void MT_RCustomerServiceProfileCache_CspCPHSTeleservicesL(); |
|
130 |
|
131 |
|
132 void MT_RCustomerServiceProfileCache_HandleRefreshL(); |
|
133 |
|
134 |
|
135 void MT_RCustomerServiceProfileCache_CspCPHSValueAddedServicesL(); |
|
136 |
|
137 |
|
138 void MT_RCustomerServiceProfileCache_CspTeleServicesL(); |
|
139 |
|
140 |
|
141 void MT_RCustomerServiceProfileCache_ChangedCspTableL(); |
|
142 |
|
143 |
|
144 void MT_RSSSettings_RSSSettingsL(); |
|
145 |
|
146 |
|
147 void MT_RSSSettings_OpenCloseL(); |
|
148 |
|
149 |
|
150 void MT_RSSSettings_Open_1L(); |
|
151 |
|
152 |
|
153 void MT_RSSSettings_RegisterAllL(); |
|
154 |
|
155 |
|
156 void MT_RSSSettings_RegisterL(); |
|
157 |
|
158 |
|
159 void MT_RSSSettings_CancelAllL(); |
|
160 |
|
161 |
|
162 void MT_RSSSettings_CancelL(); |
|
163 |
|
164 |
|
165 void MT_RSSSettings_GetL(); |
|
166 |
|
167 |
|
168 void MT_RSSSettings_SetL(); |
|
169 |
|
170 |
|
171 void MT_RSSSettings_HandleSIMChangedL(); |
|
172 |
|
173 |
|
174 void MT_RSSSettings_PreviousCugValueL(); |
|
175 |
|
176 |
|
177 void MT_RSSSettings_ResetPreviousCugValueL(); |
|
178 |
|
179 |
|
180 void MT_RSSSettings_HandleRefreshL(); |
|
181 |
|
182 |
|
183 void MT_RSSSettings_IsValueValidCugIndexL(); |
|
184 |
|
185 static TInt DoCallBackL( TAny* aAny ); |
|
186 |
|
187 void WaitTimer( TInt aWaitTime ); |
|
188 |
|
189 void Stop(); |
|
190 |
|
191 private: // Data |
|
192 |
|
193 //MSSSettingsRefreshHandler* iRefreshHandler; |
|
194 |
|
195 CActiveSchedulerWait iWaitTimer; |
|
196 |
|
197 RSSSettings* iSettings; |
|
198 |
|
199 TInt iCugValue; |
|
200 TInt iClirValue; |
|
201 TInt iAlsValue; |
|
202 TInt iAlsBlockValue; |
|
203 TInt iCugDefValue; |
|
204 |
|
205 RCustomerServiceProfileCache* iCSP; |
|
206 |
|
207 |
|
208 |
|
209 EUNIT_DECLARE_TEST_TABLE; |
|
210 |
|
211 }; |
|
212 |
|
213 #endif // __MT_SSSETTINGS_H__ |
|
214 |
|
215 // End of file |