24
|
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 |
// This file contains all the interfaces classes that can be implemented by
|
|
15 |
// the Licensee LTSY relating to SupplementaryServices related features.
|
|
16 |
//
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
/**
|
|
22 |
@file
|
|
23 |
@publishedPartner
|
|
24 |
@released
|
|
25 |
*/
|
|
26 |
|
|
27 |
|
|
28 |
#ifndef MLTSYDISPATCHSUPPLEMENTARYSERVICESINTERFACE_H_
|
|
29 |
#define MLTSYDISPATCHSUPPLEMENTARYSERVICESINTERFACE_H_
|
|
30 |
|
|
31 |
#include <ctsy/ltsy/mltsydispatchinterface.h>
|
|
32 |
#include <etelmm.h>
|
|
33 |
|
|
34 |
|
|
35 |
class MLtsyDispatchSupplementaryServicesSendNetworkServiceRequestNoFdnCheck : public MLtsyDispatchInterface
|
|
36 |
{
|
|
37 |
public:
|
|
38 |
|
|
39 |
static const TInt KLtsyDispatchSupplementaryServicesSendNetworkServiceRequestNoFdnCheckApiId = KDispatchSupplementaryServicesFuncUnitId + 1;
|
|
40 |
|
|
41 |
/**
|
|
42 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneSendNetworkServiceRequestNoFdnCheck
|
|
43 |
* request from the CTSY.
|
|
44 |
*
|
|
45 |
* It is a request call that is completed by invoking
|
|
46 |
* CCtsyDispatcherCallback::CallbackSupplementaryServicesSendNetworkServiceRequestNoFdnCheckComp()
|
|
47 |
*
|
|
48 |
* Implementation of this interface should send the request to the network without FDN check.
|
|
49 |
*
|
|
50 |
*
|
|
51 |
* @param aRequest The supplementary services string that was entered by the user and need to be send to the network.
|
|
52 |
*
|
|
53 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
54 |
* failure.
|
|
55 |
*/
|
|
56 |
virtual TInt HandleSendNetworkServiceRequestNoFdnCheckReqL(const TDesC& aRequest) = 0;
|
|
57 |
|
|
58 |
}; // class MLtsyDispatchSupplementaryServicesSendNetworkServiceRequestNoFdnCheck
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
class MLtsyDispatchSupplementaryServicesGetCallWaitingStatus : public MLtsyDispatchInterface
|
|
63 |
{
|
|
64 |
public:
|
|
65 |
|
|
66 |
static const TInt KLtsyDispatchSupplementaryServicesGetCallWaitingStatusApiId = KDispatchSupplementaryServicesFuncUnitId + 2;
|
|
67 |
|
|
68 |
/**
|
|
69 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneGetWaitingStatusPhase1
|
|
70 |
* request from the CTSY.
|
|
71 |
*
|
|
72 |
* It is a request call that is completed by invoking
|
|
73 |
* CCtsyDispatcherCallback::CallbackSupplementaryServicesGetCallWaitingStatusComp()
|
|
74 |
*
|
|
75 |
* Implementation of this interface should get the call waiting list.
|
|
76 |
*
|
|
77 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
78 |
* failure.
|
|
79 |
*/
|
|
80 |
virtual TInt HandleGetCallWaitingStatusReqL() = 0;
|
|
81 |
|
|
82 |
}; // class MLtsyDispatchSupplementaryServicesGetCallWaitingStatus
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
class MLtsyDispatchSupplementaryServicesSendNetworkServiceRequest : public MLtsyDispatchInterface
|
|
87 |
{
|
|
88 |
public:
|
|
89 |
|
|
90 |
static const TInt KLtsyDispatchSupplementaryServicesSendNetworkServiceRequestApiId = KDispatchSupplementaryServicesFuncUnitId + 3;
|
|
91 |
|
|
92 |
/**
|
|
93 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneSendNetworkServiceRequest
|
|
94 |
* request from the CTSY.
|
|
95 |
*
|
|
96 |
* It is a request call that is completed by invoking
|
|
97 |
* CCtsyDispatcherCallback::CallbackSupplementaryServicesSendNetworkServiceRequestComp()
|
|
98 |
*
|
|
99 |
* Implementation of this interface should send the request to the network after FDN check.
|
|
100 |
*
|
|
101 |
*
|
|
102 |
* @param aRequest The supplementary services string that was entered by the user and need to be send to the network.
|
|
103 |
*
|
|
104 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
105 |
* failure.
|
|
106 |
*/
|
|
107 |
virtual TInt HandleSendNetworkServiceRequestReqL(const TDesC& aRequest) = 0;
|
|
108 |
|
|
109 |
}; // class MLtsyDispatchSupplementaryServicesSendNetworkServiceRequest
|
|
110 |
|
|
111 |
|
|
112 |
|
|
113 |
class MLtsyDispatchSupplementaryServicesGetCallBarringStatus : public MLtsyDispatchInterface
|
|
114 |
{
|
|
115 |
public:
|
|
116 |
|
|
117 |
static const TInt KLtsyDispatchSupplementaryServicesGetCallBarringStatusApiId = KDispatchSupplementaryServicesFuncUnitId + 4;
|
|
118 |
|
|
119 |
/**
|
|
120 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneGetBarringStatusPhase1
|
|
121 |
* request from the CTSY.
|
|
122 |
*
|
|
123 |
* It is a request call that is completed by invoking
|
|
124 |
* CCtsyDispatcherCallback::CallbackSupplementaryServicesGetCallBarringStatusComp()
|
|
125 |
*
|
|
126 |
* Implementation of this interface should get the call barring list.
|
|
127 |
*
|
|
128 |
*
|
|
129 |
* @param aCondition The barring conditions to interrogate.
|
|
130 |
*
|
|
131 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
132 |
* failure.
|
|
133 |
*/
|
|
134 |
virtual TInt HandleGetCallBarringStatusReqL(RMobilePhone::TMobilePhoneCBCondition aCondition) = 0;
|
|
135 |
|
|
136 |
}; // class MLtsyDispatchSupplementaryServicesGetCallBarringStatus
|
|
137 |
|
|
138 |
|
|
139 |
|
|
140 |
class MLtsyDispatchSupplementaryServicesSetCallBarringStatus : public MLtsyDispatchInterface
|
|
141 |
{
|
|
142 |
public:
|
|
143 |
|
|
144 |
static const TInt KLtsyDispatchSupplementaryServicesSetCallBarringStatusApiId = KDispatchSupplementaryServicesFuncUnitId + 5;
|
|
145 |
|
|
146 |
/**
|
|
147 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneSetCallBarringStatus
|
|
148 |
* request from the CTSY.
|
|
149 |
*
|
|
150 |
* It is a request call that is completed by invoking
|
|
151 |
* CCtsyDispatcherCallback::CallbackSupplementaryServicesSetCallBarringStatusComp()
|
|
152 |
*
|
|
153 |
* Implementation of this interface should set the call barring status for a call barring condition.
|
|
154 |
*
|
|
155 |
*
|
|
156 |
* @param aCondition The call barring condition to set.
|
|
157 |
* @param aAction The call barring action.
|
|
158 |
* @param aGroup The call barring service group.
|
|
159 |
* @param aPassword The password of the call barring service.
|
|
160 |
*
|
|
161 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
162 |
* failure.
|
|
163 |
*/
|
|
164 |
virtual TInt HandleSetCallBarringStatusReqL(RMobilePhone::TMobilePhoneCBCondition aCondition,
|
|
165 |
RMobilePhone::TMobilePhoneServiceAction aAction,
|
|
166 |
RMobilePhone::TMobileService aGroup,
|
|
167 |
const TDesC& aPassword) = 0;
|
|
168 |
|
|
169 |
}; // class MLtsyDispatchSupplementaryServicesSetCallBarringStatus
|
|
170 |
|
|
171 |
|
|
172 |
|
|
173 |
class MLtsyDispatchSupplementaryServicesSetCallForwardingStatus : public MLtsyDispatchInterface
|
|
174 |
{
|
|
175 |
public:
|
|
176 |
|
|
177 |
static const TInt KLtsyDispatchSupplementaryServicesSetCallForwardingStatusApiId = KDispatchSupplementaryServicesFuncUnitId + 6;
|
|
178 |
|
|
179 |
/**
|
|
180 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneSetCallForwardingStatus
|
|
181 |
* request from the CTSY.
|
|
182 |
*
|
|
183 |
* It is a request call that is completed by invoking
|
|
184 |
* CCtsyDispatcherCallback::CallbackSupplementaryServicesSetCallForwardingStatusComp()
|
|
185 |
*
|
|
186 |
* Implementation of this interface should sets a new call forwarding status and/or registered
|
|
187 |
* information for the call forwarding condition.
|
|
188 |
*
|
|
189 |
*
|
|
190 |
* @param aCondition The condition of the new call forwarding setting.
|
|
191 |
* @param aServiceGroup The basic service group to apply the CF status change to.
|
|
192 |
* @param aAction The action to take.
|
|
193 |
* @param aNumber The forwarding number.
|
|
194 |
* @param aTimeout The time out when aCondition is ECallForwardingNoReply.
|
|
195 |
*
|
|
196 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
197 |
* failure.
|
|
198 |
*/
|
|
199 |
virtual TInt HandleSetCallForwardingStatusReqL(RMobilePhone::TMobilePhoneCFCondition aCondition,
|
|
200 |
RMobilePhone::TMobileService aServiceGroup,
|
|
201 |
RMobilePhone::TMobilePhoneServiceAction aAction,
|
|
202 |
const TDesC& aNumber,
|
|
203 |
TInt aTimeout) = 0;
|
|
204 |
|
|
205 |
}; // class MLtsyDispatchSupplementaryServicesSetCallForwardingStatus
|
|
206 |
|
|
207 |
|
|
208 |
|
|
209 |
class MLtsyDispatchSupplementaryServicesSetCallWaitingStatus : public MLtsyDispatchInterface
|
|
210 |
{
|
|
211 |
public:
|
|
212 |
|
|
213 |
static const TInt KLtsyDispatchSupplementaryServicesSetCallWaitingStatusApiId = KDispatchSupplementaryServicesFuncUnitId + 7;
|
|
214 |
|
|
215 |
/**
|
|
216 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneSetCallWaitingStatus
|
|
217 |
* request from the CTSY.
|
|
218 |
*
|
|
219 |
* It is a request call that is completed by invoking
|
|
220 |
* CCtsyDispatcherCallback::CallbackSupplementaryServicesSetCallWaitingStatusComp()
|
|
221 |
*
|
|
222 |
* Implementation of this interface should set the call waiting status.
|
|
223 |
*
|
|
224 |
*
|
|
225 |
* @param aServiceGroup The service group to change.
|
|
226 |
* @param aAction The action to do with that service group.
|
|
227 |
*
|
|
228 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
229 |
* failure.
|
|
230 |
*/
|
|
231 |
virtual TInt HandleSetCallWaitingStatusReqL(RMobilePhone::TMobileService aServiceGroup, RMobilePhone::TMobilePhoneServiceAction aAction) = 0;
|
|
232 |
|
|
233 |
}; // class MLtsyDispatchSupplementaryServicesSetCallWaitingStatus
|
|
234 |
|
|
235 |
|
|
236 |
|
|
237 |
class MLtsyDispatchSupplementaryServicesSetSsPassword : public MLtsyDispatchInterface
|
|
238 |
{
|
|
239 |
public:
|
|
240 |
|
|
241 |
static const TInt KLtsyDispatchSupplementaryServicesSetSsPasswordApiId = KDispatchSupplementaryServicesFuncUnitId + 8;
|
|
242 |
|
|
243 |
enum TServiceType
|
|
244 |
{
|
|
245 |
EAllSupplementaryServices = 0,
|
|
246 |
ECallBarring = 330
|
|
247 |
};
|
|
248 |
|
|
249 |
/**
|
|
250 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneSetSSPassword
|
|
251 |
* request from the CTSY.
|
|
252 |
*
|
|
253 |
* It is a request call that is completed by invoking
|
|
254 |
* CCtsyDispatcherCallback::CallbackSupplementaryServicesSetSsPasswordComp()
|
|
255 |
*
|
|
256 |
* Implementation of this interface should set the password of the call barring or common Supplementary Services password.
|
|
257 |
*
|
|
258 |
*
|
|
259 |
* @param aOldPassword The old password.
|
|
260 |
* @param aNewPassword The new password.
|
|
261 |
* @param aService The service.
|
|
262 |
*
|
|
263 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
264 |
* failure.
|
|
265 |
*/
|
|
266 |
virtual TInt HandleSetSsPasswordReqL(const TDesC& aOldPassword,
|
|
267 |
const TDesC& aNewPassword,
|
|
268 |
TServiceType aService) = 0;
|
|
269 |
|
|
270 |
}; // class MLtsyDispatchSupplementaryServicesSetSsPassword
|
|
271 |
|
|
272 |
|
|
273 |
|
|
274 |
class MLtsyDispatchSupplementaryServicesGetCallForwardingStatus : public MLtsyDispatchInterface
|
|
275 |
{
|
|
276 |
public:
|
|
277 |
|
|
278 |
static const TInt KLtsyDispatchSupplementaryServicesGetCallForwardingStatusApiId = KDispatchSupplementaryServicesFuncUnitId + 9;
|
|
279 |
|
|
280 |
/**
|
|
281 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneGetCallForwardingStatusPhase1
|
|
282 |
* request from the CTSY.
|
|
283 |
*
|
|
284 |
* It is a request call that is completed by invoking
|
|
285 |
* CCtsyDispatcherCallback::CallbackSupplementaryServicesGetCallForwardingStatusComp()
|
|
286 |
*
|
|
287 |
* Implementation of this interface should get the call forwarding list.
|
|
288 |
*
|
|
289 |
* @param aCondition The call forwarding condition.
|
|
290 |
* @param aService The service group.
|
|
291 |
*
|
|
292 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
293 |
* failure.
|
|
294 |
*/
|
|
295 |
virtual TInt HandleGetCallForwardingStatusReqL(RMobilePhone::TMobilePhoneCFCondition aCondition,
|
|
296 |
RMobilePhone::TMobileService aService) = 0;
|
|
297 |
|
|
298 |
}; // class MLtsyDispatchSupplementaryServicesGetCallForwardingStatus
|
|
299 |
|
|
300 |
|
|
301 |
|
|
302 |
class MLtsyDispatchSupplementaryServicesSendUssdMessage : public MLtsyDispatchInterface
|
|
303 |
{
|
|
304 |
public:
|
|
305 |
|
|
306 |
static const TInt KLtsyDispatchSupplementaryServicesSendUssdMessageApiId = KDispatchSupplementaryServicesFuncUnitId + 10;
|
|
307 |
|
|
308 |
/**
|
|
309 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileUssdMessagingSendMessage
|
|
310 |
* request from the CTSY.
|
|
311 |
*
|
|
312 |
* It is a request call that is completed by invoking
|
|
313 |
* CCtsyDispatcherCallback::CallbackSupplementaryServicesSendUssdMessageComp()
|
|
314 |
*
|
|
315 |
* Implementation of this interface should send an USSD message to the network.
|
|
316 |
*
|
|
317 |
*
|
|
318 |
* @param aData The actual data to send in the message.
|
|
319 |
* @param aDcs The data coding scheme of the message.
|
|
320 |
* @param aFormat The message format.
|
|
321 |
* @param aType The message type (RMobileUssdMessaging::EUssdMORequest, RMobileUssdMessaging::EUssdMOReply
|
|
322 |
* or RMobileUssdMessaging::EUssdMOAcknowledgement).
|
|
323 |
*
|
|
324 |
* @return KErrNone on success, KErrGsmSSUssdBusy if the latest USSD session was not yet released,
|
|
325 |
* otherwise another error code indicating the failure.
|
|
326 |
*/
|
|
327 |
virtual TInt HandleSendUssdMessageReqL(const TDesC8& aData, TUint8 aDcs,
|
|
328 |
RMobileUssdMessaging::TMobileUssdDataFormat aFormat, RMobileUssdMessaging::TMobileUssdMessageType aType) = 0;
|
|
329 |
|
|
330 |
}; // class MLtsyDispatchSupplementaryServicesSendUssdMessage
|
|
331 |
|
|
332 |
|
|
333 |
class MLtsyDispatchSupplementaryServicesSendUssdMessageNoFdnCheck : public MLtsyDispatchInterface
|
|
334 |
{
|
|
335 |
public:
|
|
336 |
|
|
337 |
static const TInt KLtsyDispatchSupplementaryServicesSendUssdMessageNoFdnCheckApiId = KDispatchSupplementaryServicesFuncUnitId + 11;
|
|
338 |
|
|
339 |
/**
|
|
340 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileUssdMessagingSendMessageNoFdnCheck
|
|
341 |
* request from the CTSY.
|
|
342 |
*
|
|
343 |
* It is a request call that is completed by invoking
|
|
344 |
* CCtsyDispatcherCallback::CallbackSupplementaryServicesSendUssdMessageNoFdnCheckComp()
|
|
345 |
*
|
|
346 |
* Implementation of this interface should send an USSD message to the network without initially checking FDN lsit.
|
|
347 |
*
|
|
348 |
*
|
|
349 |
* @param aData The actual data to send in the message.
|
|
350 |
* @param aDcs The data coding scheme of the message.
|
|
351 |
* @param aFormat The message format.
|
|
352 |
* @param aType The message type (RMobileUssdMessaging::EUssdMORequest, RMobileUssdMessaging::EUssdMOReply
|
|
353 |
* or RMobileUssdMessaging::EUssdMOAcknowledgement).
|
|
354 |
*
|
|
355 |
* @return KErrNone on success, KErrGsmSSUssdBusy if the latest USSD session was not yet released,
|
|
356 |
* otherwise another error code indicating the failure.
|
|
357 |
*/
|
|
358 |
virtual TInt HandleSendUssdMessageNoFdnCheckReqL(const TDesC8& aData, TUint8 aDcs,
|
|
359 |
RMobileUssdMessaging::TMobileUssdDataFormat aFormat, RMobileUssdMessaging::TMobileUssdMessageType aType) = 0;
|
|
360 |
|
|
361 |
}; // class MLtsyDispatchSupplementaryServicesSendUssdMessageNoFdnCheck
|
|
362 |
|
|
363 |
|
|
364 |
class MLtsyDispatchSupplementaryServicesSendUssdRelease : public MLtsyDispatchInterface
|
|
365 |
{
|
|
366 |
public:
|
|
367 |
|
|
368 |
static const TInt KLtsyDispatchSupplementaryServicesSendUssdReleaseApiId = KDispatchSupplementaryServicesFuncUnitId + 12;
|
|
369 |
|
|
370 |
/**
|
|
371 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileUssdMessagingSendRelease
|
|
372 |
* request from the CTSY.
|
|
373 |
*
|
|
374 |
* It is a request call that is completed by invoking
|
|
375 |
* CCtsyDispatcherCallback::CallbackSupplementaryServicesSendUssdReleaseComp()
|
|
376 |
*
|
|
377 |
* Implementation of this interface should send a USSD release message to the network.
|
|
378 |
*
|
|
379 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
380 |
* failure.
|
|
381 |
*/
|
|
382 |
virtual TInt HandleSendUssdReleaseReqL() = 0;
|
|
383 |
|
|
384 |
}; // class MLtsyDispatchSupplementaryServicesSendUssdRelease
|
|
385 |
|
|
386 |
|
|
387 |
|
|
388 |
class MLtsyDispatchSupplementaryServicesClearBlacklist : public MLtsyDispatchInterface
|
|
389 |
{
|
|
390 |
public:
|
|
391 |
|
|
392 |
static const TInt KLtsyDispatchSupplementaryServicesClearBlacklistApiId = KDispatchSupplementaryServicesFuncUnitId + 13;
|
|
393 |
|
|
394 |
/**
|
|
395 |
* The CTSY Dispatcher shall invoke this function on receiving the ECustomClearCallBlackListIPC
|
|
396 |
* request from the CTSY.
|
|
397 |
*
|
|
398 |
* It is a request call that is completed by invoking
|
|
399 |
* CCtsyDispatcherCallback::CallbackSupplementaryServicesClearBlacklistComp()
|
|
400 |
*
|
|
401 |
* Implementation of this interface should clear the blacklist.
|
|
402 |
*
|
|
403 |
*
|
|
404 |
* @return KErrNone on success, otherwise another error code indicating the failure.
|
|
405 |
*/
|
|
406 |
virtual TInt HandleClearBlacklistReqL() = 0;
|
|
407 |
|
|
408 |
}; // class MLtsyDispatchSupplementaryServicesClearBlacklist
|
|
409 |
|
|
410 |
|
|
411 |
#endif /*MLTSYDISPATCHSUPPLEMENTARYSERVICESINTERFACE_H_*/
|