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 Sms related features.
|
|
16 |
//
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
/**
|
|
22 |
@file
|
|
23 |
@publishedPartner
|
|
24 |
@released
|
|
25 |
*/
|
|
26 |
|
|
27 |
|
|
28 |
#ifndef MLTSYDISPATCHSMSINTERFACE_H_
|
|
29 |
#define MLTSYDISPATCHSMSINTERFACE_H_
|
|
30 |
|
|
31 |
#include <ctsy/ltsy/mltsydispatchinterface.h>
|
|
32 |
#include <etelmm.h>
|
|
33 |
|
|
34 |
namespace DispatcherSim
|
|
35 |
{
|
|
36 |
|
|
37 |
/**
|
|
38 |
* This namespace contains all types relating to the Sim dispatcher.
|
|
39 |
*/
|
|
40 |
|
|
41 |
/** SMS parameters */
|
|
42 |
struct TSmsParameters
|
|
43 |
{
|
|
44 |
/*
|
|
45 |
* LocationNumber
|
|
46 |
*/
|
|
47 |
TUint8 iLocationNumber;
|
|
48 |
|
|
49 |
/*
|
|
50 |
* Parameter Indicator
|
|
51 |
*/
|
|
52 |
TUint8 iParameterIndicator;
|
|
53 |
|
|
54 |
/*
|
|
55 |
* ProtocolId
|
|
56 |
*/
|
|
57 |
TUint8 iProtocolId;
|
|
58 |
|
|
59 |
/*
|
|
60 |
* Data Coding Scheme
|
|
61 |
*/
|
|
62 |
TUint8 iDataCodingScheme;
|
|
63 |
|
|
64 |
/*
|
|
65 |
* Validity Period
|
|
66 |
*/
|
|
67 |
TUint8 iValidityPeriod;
|
|
68 |
|
|
69 |
/*
|
|
70 |
* MobileSc TON
|
|
71 |
*/
|
|
72 |
RMobilePhone::TMobileTON iMobileScTON;
|
|
73 |
|
|
74 |
/*
|
|
75 |
* MobileSc NPI
|
|
76 |
*/
|
|
77 |
RMobilePhone::TMobileNPI iMobileScNPI;
|
|
78 |
|
|
79 |
/*
|
|
80 |
* Mobile De TON
|
|
81 |
*/
|
|
82 |
RMobilePhone::TMobileTON iMobileDeTON;
|
|
83 |
|
|
84 |
/*
|
|
85 |
* Mobile De NPI
|
|
86 |
*/
|
|
87 |
RMobilePhone::TMobileNPI iMobileDeNPI;
|
|
88 |
|
|
89 |
/*
|
|
90 |
* Alpha Tag Present
|
|
91 |
*/
|
|
92 |
TBool iAlphaTagPresent;
|
|
93 |
};
|
|
94 |
}
|
|
95 |
|
|
96 |
class MLtsyDispatchSmsSendSatSms : public MLtsyDispatchInterface
|
|
97 |
{
|
|
98 |
public:
|
|
99 |
|
|
100 |
static const TInt KLtsyDispatchSmsSendSatSmsApiId = KDispatchSmsFuncUnitId + 1;
|
|
101 |
|
|
102 |
/**
|
|
103 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsySmsSendSatMessage
|
|
104 |
* request from the CTSY.
|
|
105 |
*
|
|
106 |
* It is a request call that is completed by invoking
|
|
107 |
* CCtsyDispatcherCallback::CallbackSmsSendSatSmsComp()
|
|
108 |
*
|
|
109 |
* Implementation of this interface should handle a request to send a SMS message initiated from a client
|
|
110 |
* side RSat::SendMessageNoLogging() call.
|
|
111 |
*
|
|
112 |
* @param aDestination The mobile telephone number.
|
|
113 |
* @param aSmsTpdu The SMS TPDU.
|
|
114 |
* @param aDataFormat The SMS data format.
|
|
115 |
* @param aGsmServiceCentre The service centre number.
|
|
116 |
* @param aMore This indicates whether the client is going to send another SMS immediately
|
|
117 |
after this one.
|
|
118 |
*
|
|
119 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
120 |
* failure.
|
|
121 |
*/
|
|
122 |
virtual TInt HandleSendSatSmsReqL( const TDesC8& aSmsTpdu,
|
|
123 |
RMobileSmsMessaging::TMobileSmsDataFormat aDataFormat,
|
|
124 |
const RMobilePhone::TMobileAddress& aGsmServiceCentre,
|
|
125 |
TBool aMoreMessages
|
|
126 |
) = 0;
|
|
127 |
|
|
128 |
}; // class MLtsyDispatchSmsSendSatSms
|
|
129 |
|
|
130 |
|
|
131 |
|
|
132 |
class MLtsyDispatchSmsGetSmsStoreInfo : public MLtsyDispatchInterface
|
|
133 |
{
|
|
134 |
public:
|
|
135 |
|
|
136 |
static const TInt KLtsyDispatchSmsGetSmsStoreInfoApiId = KDispatchSmsFuncUnitId + 2;
|
|
137 |
|
|
138 |
/**
|
|
139 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileSmsMessagingGetMessageStoreInfo
|
|
140 |
* request from the CTSY.
|
|
141 |
*
|
|
142 |
* It is a request call that is completed by invoking
|
|
143 |
* CCtsyDispatcherCallback::CallbackSmsGetSmsStoreInfoComp()
|
|
144 |
*
|
|
145 |
* Implementation of this interface should retrieve the current Sms store information.
|
|
146 |
*
|
|
147 |
*
|
|
148 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
149 |
* failure.
|
|
150 |
*
|
|
151 |
* @see RMobileSmsMessaging::GetMessageStoreInfo
|
|
152 |
*/
|
|
153 |
virtual TInt HandleGetSmsStoreInfoReqL() = 0;
|
|
154 |
|
|
155 |
}; // class MLtsyDispatchSmsGetSmsStoreInfo
|
|
156 |
|
|
157 |
|
|
158 |
|
|
159 |
class MLtsyDispatchSmsGetSmspList : public MLtsyDispatchInterface
|
|
160 |
{
|
|
161 |
public:
|
|
162 |
|
|
163 |
static const TInt KLtsyDispatchSmsGetSmspListApiId = KDispatchSmsFuncUnitId + 3;
|
|
164 |
|
|
165 |
/**
|
|
166 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileSmsMessagingGetSmspListPhase1
|
|
167 |
* request from the CTSY.
|
|
168 |
*
|
|
169 |
* It is a request call that is completed by invoking
|
|
170 |
* CCtsyDispatcherCallback::CallbackSmsGetSmspListComp()
|
|
171 |
*
|
|
172 |
* Implementation of this interface should request to read the SMS parameter list from the SIM's SMSP store.
|
|
173 |
*
|
|
174 |
*
|
|
175 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
176 |
* failure.
|
|
177 |
*
|
|
178 |
* @see CMobilePhoneSmspList()
|
|
179 |
* @see CRetrieveMobilePhoneSmspList()
|
|
180 |
*/
|
|
181 |
virtual TInt HandleGetSmspListReqL() = 0;
|
|
182 |
|
|
183 |
}; // class MLtsyDispatchSmsGetSmspList
|
|
184 |
|
|
185 |
|
|
186 |
|
|
187 |
class MLtsyDispatchSmsNackSmsStored : public MLtsyDispatchInterface
|
|
188 |
{
|
|
189 |
public:
|
|
190 |
|
|
191 |
static const TInt KLtsyDispatchSmsNackSmsStoredApiId = KDispatchSmsFuncUnitId + 4;
|
|
192 |
|
|
193 |
/**
|
|
194 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileSmsMessagingNackSmsStored
|
|
195 |
* request from the CTSY.
|
|
196 |
*
|
|
197 |
* It is a request call that is completed by invoking
|
|
198 |
* CCtsyDispatcherCallback::CallbackSmsNackSmsStoredComp()
|
|
199 |
*
|
|
200 |
* Implementation of this interface should accept this negative acknowledgment: when the client receives an unstored SMS,
|
|
201 |
* it will use this member function to return a negative acknowledgment if it fails to decode and/or store that SMS.
|
|
202 |
* This TPDU will contain the TP error cause that prevents the client from acknowledging the SMS.
|
|
203 |
* The client should also provide the RP error cause by placing it in the aRpCause parameter.
|
|
204 |
*
|
|
205 |
* @param aTpdu Holds the TPDU defined for a SMS-DELIVER-REPORT (for RP-ERROR) in GSM 03.40.
|
|
206 |
* @param aRpCause Contain one of the MS related extended error codes.
|
|
207 |
*
|
|
208 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
209 |
* failure.
|
|
210 |
*
|
|
211 |
* @see RMobileSmsMessaging::NackSmsStored()
|
|
212 |
*/
|
|
213 |
virtual TInt HandleNackSmsStoredReqL(const TDesC8& aTpdu, TInt aRpCause) = 0;
|
|
214 |
|
|
215 |
/**
|
|
216 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileSmsMessagingNackSmsStored
|
|
217 |
* request from the CTSY.
|
|
218 |
*
|
|
219 |
* It is a request call that is completed by invoking
|
|
220 |
* CCtsyDispatcherCallback::CallbackSmsNackSmsStoredComp()
|
|
221 |
*
|
|
222 |
* Implementation of this interface should accept this negative acknowledgment: when the client receives an unstored SMS,
|
|
223 |
* it will use this member function to return a negative acknowledgment if it fails to decode and/or store that SMS.
|
|
224 |
* The client should also provide the RP error cause by placing it in the aRpCause parameter.
|
|
225 |
*
|
|
226 |
* @param aRpCause Contain one of the MS related extended error codes.
|
|
227 |
*
|
|
228 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
229 |
* failure.
|
|
230 |
*
|
|
231 |
* @see RMobileSmsMessaging::NackSmsStored()
|
|
232 |
*/
|
|
233 |
virtual TInt HandleNackSmsStoredReqL(TInt aRpCause) = 0;
|
|
234 |
|
|
235 |
}; // class MLtsyDispatchSmsNackSmsStored
|
|
236 |
|
|
237 |
|
|
238 |
|
|
239 |
class MLtsyDispatchSmsAckSmsStored : public MLtsyDispatchInterface
|
|
240 |
{
|
|
241 |
public:
|
|
242 |
|
|
243 |
static const TInt KLtsyDispatchSmsAckSmsStoredApiId = KDispatchSmsFuncUnitId + 5;
|
|
244 |
|
|
245 |
/**
|
|
246 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileSmsMessagingAckSmsStored
|
|
247 |
* request from the CTSY.
|
|
248 |
*
|
|
249 |
* It is a request call that is completed by invoking
|
|
250 |
* CCtsyDispatcherCallback::CallbackSmsAckSmsStoredComp()
|
|
251 |
*
|
|
252 |
* Implementation of this interface should accept the acknowledgment: when the client receives an unstored SMS,
|
|
253 |
* it will trigger this function to return a positive acknowledgment if it manages to successfully decode and store that SMS.
|
|
254 |
* If the client wishes to send a SMS-DELIVER-REPORT in response to the received SMS-DELIVER ,
|
|
255 |
* then the aTpdu parameter will be used to hold the TPDU defined for a SMS-DELIVER-REPORT (for RP-ACK) in GSM 03.40.
|
|
256 |
*
|
|
257 |
*
|
|
258 |
* @param aTpdu Holds the TPDU defined for a SMS-DELIVER-REPORT (for RP-ACK) in GSM 03.40.
|
|
259 |
*
|
|
260 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
261 |
* failure.
|
|
262 |
*
|
|
263 |
* @see RMobileSmsMessaging::AckSmsStored()
|
|
264 |
*/
|
|
265 |
virtual TInt HandleAckSmsStoredReqL(const TDesC8& aTpdu) = 0;
|
|
266 |
|
|
267 |
/**
|
|
268 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileSmsMessagingAckSmsStored
|
|
269 |
* request from the CTSY.
|
|
270 |
*
|
|
271 |
* It is a request call that is completed by invoking
|
|
272 |
* CCtsyDispatcherCallback::CallbackSmsAckSmsStoredComp()
|
|
273 |
*
|
|
274 |
* Implementation of this interface should accept the acknowledgment: when the client receives an unstored SMS,
|
|
275 |
* it will trigger this function to return a positive acknowledgment if it manages to successfully decode and store that SMS.
|
|
276 |
*
|
|
277 |
*
|
|
278 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
279 |
* failure.
|
|
280 |
*
|
|
281 |
* @see RMobileSmsMessaging::AckSmsStored()
|
|
282 |
*/
|
|
283 |
virtual TInt HandleAckSmsStoredReqL() = 0;
|
|
284 |
|
|
285 |
}; // class MLtsyDispatchSmsAckSmsStored
|
|
286 |
|
|
287 |
|
|
288 |
|
|
289 |
class MLtsyDispatchSmsResumeSmsReception : public MLtsyDispatchInterface
|
|
290 |
{
|
|
291 |
public:
|
|
292 |
|
|
293 |
static const TInt KLtsyDispatchSmsResumeSmsReceptionApiId = KDispatchSmsFuncUnitId + 6;
|
|
294 |
|
|
295 |
/**
|
|
296 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileSmsMessagingResumeSmsReception
|
|
297 |
* request from the CTSY.
|
|
298 |
*
|
|
299 |
* It is a request call that is completed by invoking
|
|
300 |
* CCtsyDispatcherCallback::CallbackSmsResumeSmsReceptionComp()
|
|
301 |
*
|
|
302 |
* Implementation of this interface should allow a client to resume sms reception
|
|
303 |
*
|
|
304 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
305 |
* failure.
|
|
306 |
*/
|
|
307 |
virtual TInt HandleResumeSmsReceptionReqL() = 0;
|
|
308 |
|
|
309 |
}; // class MLtsyDispatchSmsResumeSmsReception
|
|
310 |
|
|
311 |
|
|
312 |
class MLtsyDispatchSmsSendSmsMessage : public MLtsyDispatchInterface
|
|
313 |
{
|
|
314 |
public:
|
|
315 |
|
|
316 |
static const TInt KLtsyDispatchSmsSendSmsMessageApiId = KDispatchSmsFuncUnitId + 7;
|
|
317 |
|
|
318 |
/**
|
|
319 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileSmsMessagingSendMessage
|
|
320 |
* request from the CTSY.
|
|
321 |
*
|
|
322 |
* It is a request call that is completed by invoking
|
|
323 |
* CCtsyDispatcherCallback::CallbackSmsSendSmsMessageComp()
|
|
324 |
*
|
|
325 |
* Implementation of this interface should allow a client to send a SMS message
|
|
326 |
*
|
|
327 |
* @param aDestination The mobile telephone number.
|
|
328 |
* @param aSmsTpdu The SMS TPDU.
|
|
329 |
* @param aDataFormat The SMS data format.
|
|
330 |
* @param aGsmServiceCentre The service centre number.
|
|
331 |
* @param aMore This indicates whether the client is going to send another SMS immediately
|
|
332 |
* after this one.
|
|
333 |
*
|
|
334 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
335 |
* failure.
|
|
336 |
*/
|
|
337 |
virtual TInt HandleSendSmsMessageReqL( const RMobilePhone::TMobileAddress& aDestination,
|
|
338 |
const TDesC8& aSmsTpdu,
|
|
339 |
RMobileSmsMessaging::TMobileSmsDataFormat aDataFormat,
|
|
340 |
const RMobilePhone::TMobileAddress& aGsmServiceCentre,
|
|
341 |
TBool aMoreMessages
|
|
342 |
) = 0;
|
|
343 |
|
|
344 |
|
|
345 |
}; // class MLtsyDispatchSmsSendSmsMessage
|
|
346 |
|
|
347 |
|
|
348 |
class MLtsyDispatchSmsSendSmsMessageNoFdnCheck : public MLtsyDispatchInterface
|
|
349 |
{
|
|
350 |
public:
|
|
351 |
|
|
352 |
static const TInt KLtsyDispatchSmsSendSmsMessageNoFdnCheckApiId = KDispatchSmsFuncUnitId + 8;
|
|
353 |
|
|
354 |
/**
|
|
355 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileSmsMessagingSendMessageNoFdnCheck
|
|
356 |
* request from the CTSY.
|
|
357 |
*
|
|
358 |
* It is a request call that is completed by invoking
|
|
359 |
* CCtsyDispatcherCallback::CallbackSmsSendSmsMessageNoFdnCheckComp()
|
|
360 |
*
|
|
361 |
* Implementation of this interface should allow a client to send a SMS message
|
|
362 |
*
|
|
363 |
*
|
|
364 |
* @param aDestination The mobile telephone number.
|
|
365 |
* @param aSmsTpdu The SMS TPDU.
|
|
366 |
* @param aDataFormat The SMS data format.
|
|
367 |
* @param aGsmServiceCentre The service centre number.
|
|
368 |
* @param aMore This indicates whether the client is going to send another SMS immediately
|
|
369 |
after this one.
|
|
370 |
*
|
|
371 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
372 |
* failure.
|
|
373 |
*/
|
|
374 |
virtual TInt HandleSendSmsMessageNoFdnCheckReqL( const RMobilePhone::TMobileAddress& aDestination,
|
|
375 |
const TDesC8& aSmsTpdu,
|
|
376 |
RMobileSmsMessaging::TMobileSmsDataFormat aDataFormat,
|
|
377 |
const RMobilePhone::TMobileAddress& aGsmServiceCentre,
|
|
378 |
TBool aMoreMessages
|
|
379 |
) = 0;
|
|
380 |
|
|
381 |
}; // class MLtsyDispatchSmsSendSmsMessageNoFdnCheck
|
|
382 |
|
|
383 |
|
|
384 |
class MLtsyDispatchSmsSetMoSmsBearer : public MLtsyDispatchInterface
|
|
385 |
{
|
|
386 |
public:
|
|
387 |
|
|
388 |
static const TInt KLtsyDispatchSmsSetMoSmsBearerApiId = KDispatchSmsFuncUnitId + 9;
|
|
389 |
|
|
390 |
/**
|
|
391 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileSmsMessagingSetMoSmsBearer
|
|
392 |
* request from the CTSY.
|
|
393 |
*
|
|
394 |
* It is a request call that is completed by invoking
|
|
395 |
* CCtsyDispatcherCallback::CallbackSmsSetMoSmsBearerComp()
|
|
396 |
*
|
|
397 |
* Implementation of this interface should allow client to set SMS bearer
|
|
398 |
*
|
|
399 |
* @param aBearer The SMS bearer.
|
|
400 |
*
|
|
401 |
*
|
|
402 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
403 |
* failure.
|
|
404 |
*/
|
|
405 |
virtual TInt HandleSetMoSmsBearerReqL(RMobileSmsMessaging::TMobileSmsBearer aBearer) = 0;
|
|
406 |
|
|
407 |
}; // class MLtsyDispatchSmsSetMoSmsBearer
|
|
408 |
|
|
409 |
|
|
410 |
|
|
411 |
class MLtsyDispatchSmsStoreSmspListEntry : public MLtsyDispatchInterface
|
|
412 |
{
|
|
413 |
public:
|
|
414 |
|
|
415 |
static const TInt KLtsyDispatchSmsStoreSmspListEntryApiId = KDispatchSmsFuncUnitId + 10;
|
|
416 |
|
|
417 |
/**
|
|
418 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobileSmsMessagingStoreSmspList
|
|
419 |
* request from the CTSY.
|
|
420 |
*
|
|
421 |
* It is a request call that is completed by invoking
|
|
422 |
* CCtsyDispatcherCallback::CallbackSmsStoreSmspListComp()
|
|
423 |
*
|
|
424 |
* Implementation of this interface should handle the request to store a SMSP entry
|
|
425 |
* in the SIM's SMSP file
|
|
426 |
*
|
|
427 |
* @param aSmspEntry Defines a set of SMS parameters
|
|
428 |
*
|
|
429 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
430 |
* failure.
|
|
431 |
*/
|
|
432 |
virtual TInt HandleStoreSmspListEntryReqL(const RMobileSmsMessaging::TMobileSmspEntryV1& aSmspEntry) = 0;
|
|
433 |
|
|
434 |
}; // class MLtsyDispatchSmsStoreSmspList
|
|
435 |
|
|
436 |
|
|
437 |
#endif /*MLTSYDISPATCHSMSINTERFACE_H_*/
|