24
|
1 |
// Copyright (c) 2006-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 |
// Implmentation of all test objects required to verify capability check on
|
|
15 |
// ETel3rdParty notifiers.
|
|
16 |
//
|
|
17 |
//
|
|
18 |
|
|
19 |
/**
|
|
20 |
@file
|
|
21 |
@internalTechnology
|
|
22 |
*/
|
|
23 |
|
|
24 |
#include "notifyfunctsteps.h"
|
|
25 |
#include "te_etelisvcapsdefs.h"
|
|
26 |
|
|
27 |
//
|
|
28 |
CNotifyFlightModeTestStep::CNotifyFlightModeTestStep()
|
|
29 |
:iFlightModePckg(iFlightMode)
|
|
30 |
{
|
|
31 |
}
|
|
32 |
TInt CNotifyFlightModeTestStep::IssueRequestL(TRequestStatus& aStatus)
|
|
33 |
{
|
|
34 |
iTelephony->NotifyChange(aStatus, CTelephony::EFlightModeChange, iFlightModePckg);
|
|
35 |
return KErrNone;
|
|
36 |
}
|
|
37 |
TInt CNotifyFlightModeTestStep::CancelRequestL()
|
|
38 |
{
|
|
39 |
iTelephony->CancelAsync(CTelephony::EFlightModeChangeCancel);
|
|
40 |
return KErrNone;
|
|
41 |
}
|
|
42 |
|
|
43 |
//
|
|
44 |
CNotifyIndicatorTestStep::CNotifyIndicatorTestStep()
|
|
45 |
:iIndicatorPckg(iIndicator)
|
|
46 |
{
|
|
47 |
}
|
|
48 |
TInt CNotifyIndicatorTestStep::IssueRequestL(TRequestStatus& aStatus)
|
|
49 |
{
|
|
50 |
iTelephony->NotifyChange(aStatus, CTelephony::EIndicatorChange, iIndicatorPckg);
|
|
51 |
return KErrNone;
|
|
52 |
}
|
|
53 |
TInt CNotifyIndicatorTestStep::CancelRequestL()
|
|
54 |
{
|
|
55 |
iTelephony->CancelAsync(CTelephony::EIndicatorChangeCancel);
|
|
56 |
return KErrNone;
|
|
57 |
}
|
|
58 |
|
|
59 |
//
|
|
60 |
|
|
61 |
CNotifyBatteryInfoTestStep::CNotifyBatteryInfoTestStep()
|
|
62 |
:iBatteryInfoPckg(iBatteryInfo)
|
|
63 |
{
|
|
64 |
}
|
|
65 |
TInt CNotifyBatteryInfoTestStep::IssueRequestL(TRequestStatus& aStatus)
|
|
66 |
{
|
|
67 |
iTelephony->NotifyChange(aStatus, CTelephony::EBatteryInfoChange, iBatteryInfoPckg);
|
|
68 |
return KErrNone;
|
|
69 |
}
|
|
70 |
TInt CNotifyBatteryInfoTestStep::CancelRequestL()
|
|
71 |
{
|
|
72 |
iTelephony->CancelAsync(CTelephony::EBatteryInfoChangeCancel);
|
|
73 |
return KErrNone;
|
|
74 |
}
|
|
75 |
|
|
76 |
//
|
|
77 |
CNotifySignalStrengthTestStep::CNotifySignalStrengthTestStep()
|
|
78 |
:iSignalStrengthPckg(iSignalStrength)
|
|
79 |
{
|
|
80 |
}
|
|
81 |
TInt CNotifySignalStrengthTestStep::IssueRequestL(TRequestStatus& aStatus)
|
|
82 |
{
|
|
83 |
iTelephony->NotifyChange(aStatus, CTelephony::ESignalStrengthChange, iSignalStrengthPckg);
|
|
84 |
return KErrNone;
|
|
85 |
}
|
|
86 |
TInt CNotifySignalStrengthTestStep::CancelRequestL()
|
|
87 |
{
|
|
88 |
iTelephony->CancelAsync(CTelephony::ESignalStrengthChangeCancel);
|
|
89 |
return KErrNone;
|
|
90 |
}
|
|
91 |
|
|
92 |
//
|
|
93 |
CNotifyPin1LockInfoTestStep::CNotifyPin1LockInfoTestStep()
|
|
94 |
:iLockInfoPckg(iLockInfo)
|
|
95 |
{
|
|
96 |
}
|
|
97 |
TInt CNotifyPin1LockInfoTestStep::IssueRequestL(TRequestStatus& aStatus)
|
|
98 |
{
|
|
99 |
iTelephony->NotifyChange(aStatus, CTelephony::EPin1LockInfoChange, iLockInfoPckg);
|
|
100 |
return KErrNone;
|
|
101 |
}
|
|
102 |
TInt CNotifyPin1LockInfoTestStep::CancelRequestL()
|
|
103 |
{
|
|
104 |
iTelephony->CancelAsync(CTelephony::EPin1LockInfoChangeCancel);
|
|
105 |
return KErrNone;
|
|
106 |
}
|
|
107 |
|
|
108 |
//
|
|
109 |
CNotifyPin2LockInfoTestStep::CNotifyPin2LockInfoTestStep()
|
|
110 |
:iLockInfoPckg(iLockInfo)
|
|
111 |
{
|
|
112 |
}
|
|
113 |
TInt CNotifyPin2LockInfoTestStep::IssueRequestL(TRequestStatus& aStatus)
|
|
114 |
{
|
|
115 |
iTelephony->NotifyChange(aStatus, CTelephony::EPin2LockInfoChange, iLockInfoPckg);
|
|
116 |
return KErrNone;
|
|
117 |
}
|
|
118 |
TInt CNotifyPin2LockInfoTestStep::CancelRequestL()
|
|
119 |
{
|
|
120 |
iTelephony->CancelAsync(CTelephony::EPin2LockInfoChangeCancel);
|
|
121 |
return KErrNone;
|
|
122 |
}
|
|
123 |
|
|
124 |
//
|
|
125 |
CNotifyVoiceLineStatusTestStep::CNotifyVoiceLineStatusTestStep()
|
|
126 |
:iCallStatusPckg(iCallStatus)
|
|
127 |
{
|
|
128 |
}
|
|
129 |
TInt CNotifyVoiceLineStatusTestStep::IssueRequestL(TRequestStatus& aStatus)
|
|
130 |
{
|
|
131 |
iTelephony->NotifyChange(aStatus, CTelephony::EVoiceLineStatusChange, iCallStatusPckg);
|
|
132 |
return KErrNone;
|
|
133 |
}
|
|
134 |
TInt CNotifyVoiceLineStatusTestStep::CancelRequestL()
|
|
135 |
{
|
|
136 |
iTelephony->CancelAsync(CTelephony::EVoiceLineStatusChangeCancel);
|
|
137 |
return KErrNone;
|
|
138 |
}
|
|
139 |
|
|
140 |
//
|
|
141 |
CNotifyOwnedCall1StatusTestStep::CNotifyOwnedCall1StatusTestStep()
|
|
142 |
:iCallStatusPckg(iCallStatusPckg)
|
|
143 |
{
|
|
144 |
}
|
|
145 |
TInt CNotifyOwnedCall1StatusTestStep::IssueRequestL(TRequestStatus& aStatus)
|
|
146 |
{
|
|
147 |
iTelephony->NotifyChange(aStatus, CTelephony::EOwnedCall1StatusChange, iCallStatusPckg);
|
|
148 |
return KErrNone;
|
|
149 |
}
|
|
150 |
TInt CNotifyOwnedCall1StatusTestStep::CancelRequestL()
|
|
151 |
{
|
|
152 |
iTelephony->CancelAsync(CTelephony::EOwnedCall1StatusChangeCancel);
|
|
153 |
return KErrNone;
|
|
154 |
}
|
|
155 |
|
|
156 |
//
|
|
157 |
CNotifyOwnedCall2StatusTestStep::CNotifyOwnedCall2StatusTestStep()
|
|
158 |
:iCallStatusPckg(iCallStatus)
|
|
159 |
{
|
|
160 |
}
|
|
161 |
TInt CNotifyOwnedCall2StatusTestStep::IssueRequestL(TRequestStatus& aStatus)
|
|
162 |
{
|
|
163 |
iTelephony->NotifyChange(aStatus, CTelephony::EOwnedCall2StatusChange, iCallStatusPckg);
|
|
164 |
return KErrNone;
|
|
165 |
}
|
|
166 |
TInt CNotifyOwnedCall2StatusTestStep::CancelRequestL()
|
|
167 |
{
|
|
168 |
iTelephony->CancelAsync(CTelephony::EOwnedCall2StatusChangeCancel);
|
|
169 |
return KErrNone;
|
|
170 |
}
|
|
171 |
|
|
172 |
//
|
|
173 |
CNotifyOwnedCall1RemotePartyInfoTestStep::CNotifyOwnedCall1RemotePartyInfoTestStep()
|
|
174 |
:iRemoteInfoPckg(iRemoteInfo)
|
|
175 |
{
|
|
176 |
}
|
|
177 |
TInt CNotifyOwnedCall1RemotePartyInfoTestStep::IssueRequestL(TRequestStatus& aStatus)
|
|
178 |
{
|
|
179 |
iTelephony->NotifyChange(aStatus,CTelephony::EOwnedCall1RemotePartyInfoChange , iRemoteInfoPckg);
|
|
180 |
return KErrNone;
|
|
181 |
}
|
|
182 |
TInt CNotifyOwnedCall1RemotePartyInfoTestStep::CancelRequestL()
|
|
183 |
{
|
|
184 |
iTelephony->CancelAsync(CTelephony::EOwnedCall1RemotePartyInfoChangeCancel);
|
|
185 |
return KErrNone;
|
|
186 |
}
|
|
187 |
|
|
188 |
//
|
|
189 |
CNotifyOwnedCall2RemotePartyInfoTestStep::CNotifyOwnedCall2RemotePartyInfoTestStep()
|
|
190 |
:iRemoteInfoPckg(iRemoteInfo)
|
|
191 |
{
|
|
192 |
}
|
|
193 |
TInt CNotifyOwnedCall2RemotePartyInfoTestStep::IssueRequestL(TRequestStatus& aStatus)
|
|
194 |
{
|
|
195 |
iTelephony->NotifyChange(aStatus, CTelephony::EOwnedCall2RemotePartyInfoChange, iRemoteInfoPckg);
|
|
196 |
return KErrNone;
|
|
197 |
}
|
|
198 |
TInt CNotifyOwnedCall2RemotePartyInfoTestStep::CancelRequestL()
|
|
199 |
{
|
|
200 |
iTelephony->CancelAsync(CTelephony::EOwnedCall2RemotePartyInfoChangeCancel);
|
|
201 |
return KErrNone;
|
|
202 |
}
|
|
203 |
|
|
204 |
//
|
|
205 |
|
|
206 |
CNotifyNetworkRegistrationStatusTestStep::CNotifyNetworkRegistrationStatusTestStep()
|
|
207 |
:iRegistrationInfoPckg(iRegistrationInfo)
|
|
208 |
{
|
|
209 |
}
|
|
210 |
TInt CNotifyNetworkRegistrationStatusTestStep::IssueRequestL(TRequestStatus& aStatus)
|
|
211 |
{
|
|
212 |
iTelephony->NotifyChange(aStatus, CTelephony::ENetworkRegistrationStatusChange, iRegistrationInfoPckg);
|
|
213 |
return KErrNone;
|
|
214 |
}
|
|
215 |
TInt CNotifyNetworkRegistrationStatusTestStep::CancelRequestL()
|
|
216 |
{
|
|
217 |
iTelephony->CancelAsync(CTelephony::ENetworkRegistrationStatusChangeCancel);
|
|
218 |
return KErrNone;
|
|
219 |
}
|
|
220 |
|
|
221 |
//
|
|
222 |
CNotifyCurrentNetworkInfoTestStep::CNotifyCurrentNetworkInfoTestStep()
|
|
223 |
:iNetworkInfoPckg(iNetworkInfo)
|
|
224 |
{
|
|
225 |
}
|
|
226 |
TInt CNotifyCurrentNetworkInfoTestStep::IssueRequestL(TRequestStatus& aStatus)
|
|
227 |
{
|
|
228 |
iTelephony->NotifyChange(aStatus, CTelephony::ECurrentNetworkInfoChange, iNetworkInfoPckg);
|
|
229 |
return KErrNone;
|
|
230 |
}
|
|
231 |
TInt CNotifyCurrentNetworkInfoTestStep::CancelRequestL()
|
|
232 |
{
|
|
233 |
iTelephony->CancelAsync(CTelephony::ECurrentNetworkInfoChangeCancel);
|
|
234 |
return KErrNone;
|
|
235 |
}
|
|
236 |
|
|
237 |
//
|
|
238 |
|
|
239 |
|
|
240 |
|