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 Phonebook related features.
|
|
16 |
//
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
/**
|
|
22 |
@file
|
|
23 |
@publishedPartner
|
|
24 |
@released
|
|
25 |
*/
|
|
26 |
|
|
27 |
|
|
28 |
#ifndef MLTSYDISPATCHPHONEBOOKINTERFACE_H_
|
|
29 |
#define MLTSYDISPATCHPHONEBOOKINTERFACE_H_
|
|
30 |
|
|
31 |
#include <ctsy/ltsy/mltsydispatchinterface.h>
|
|
32 |
#include <etelmm.h>
|
|
33 |
|
|
34 |
#include <ctsy/serviceapi/cmmsmsutility.h>
|
|
35 |
|
|
36 |
namespace DispatcherPhonebook
|
|
37 |
{
|
|
38 |
|
|
39 |
/**
|
|
40 |
* This namespace contains all types relating to the phonebook dispatcher.
|
|
41 |
*/
|
|
42 |
|
|
43 |
/**
|
|
44 |
* Enum containing all the supported phonebook types
|
|
45 |
*/
|
|
46 |
enum TPhonebook
|
|
47 |
{
|
|
48 |
EIccAdn = 0, //Abbriviated Dailling Numbers
|
|
49 |
EIccBdn, //Barred Dailling Numbers
|
|
50 |
EIccSdn, //Service Dialling numbers
|
|
51 |
EIccFdn, //Fixed Dialling numbers
|
|
52 |
EIccVmb, //Voice Mail Box
|
|
53 |
EIccMbdn, //Mailbox dialling numbers
|
|
54 |
EUnknown
|
|
55 |
};
|
|
56 |
|
|
57 |
class TPhonebookStoreInfoV1
|
|
58 |
{
|
|
59 |
|
|
60 |
/**
|
|
61 |
* This structure contains the details required by the CTSY about the various
|
|
62 |
* phonebook stores, it is used in the initialisation procedure.
|
|
63 |
*
|
|
64 |
* Total Entries - The total number of entries the store can contain.
|
|
65 |
* Maximum Text Length - The maximum length of a text field in the store.
|
|
66 |
* Maximum Number Length - The maximum length of a number in the store.
|
|
67 |
* Capabilities - The Bit field of the stores capabilities (RMobilePhoneStore::TMobilePhoneStoreCaps).
|
|
68 |
* Maximum Fields Per Entry - The maximum number of fields in a given entry.
|
|
69 |
*/
|
|
70 |
|
|
71 |
public:
|
|
72 |
|
|
73 |
TPhonebookStoreInfoV1() :
|
|
74 |
iAdnTotalEntries(-1),
|
|
75 |
iAdnMaximumTextLength(-1),
|
|
76 |
iAdnMaximumNumberLength(-1),
|
|
77 |
iFdnTotalEntries(-1),
|
|
78 |
iFdnMaximumTextLength(-1),
|
|
79 |
iFdnMaximumNumberLength(-1),
|
|
80 |
iSdnTotalEntries(-1),
|
|
81 |
iSdnMaximumTextLength(-1),
|
|
82 |
iSdnMaximumNumberLength(-1),
|
|
83 |
iVmbTotalEntries(-1),
|
|
84 |
iVmbMaximumTextLength(-1),
|
|
85 |
iVmbMaximumNumberLength(-1),
|
|
86 |
iVmbCapabilities(0),
|
|
87 |
iMbdnTotalEntries(-1),
|
|
88 |
iMbdnMaximumTextLength(-1),
|
|
89 |
iMbdnMaximumNumberLength(-1),
|
|
90 |
iMbdnCapabilities(0),
|
|
91 |
iSecondNameMaximumFieldsPerEntry(-1),
|
|
92 |
iSecondNameMaximumLength(-1),
|
|
93 |
iEmailMaximumFieldsPerEntry(-1),
|
|
94 |
iEmailMaximumLength(-1),
|
|
95 |
iAdditionalNumberMaximumFieldsPerEntry(-1),
|
|
96 |
iAdditionalNumberMaximumLength(-1)
|
|
97 |
{
|
|
98 |
}
|
|
99 |
|
|
100 |
//Abbriviated Dailling Numbers
|
|
101 |
TInt iAdnTotalEntries;
|
|
102 |
TInt iAdnMaximumTextLength;
|
|
103 |
TInt iAdnMaximumNumberLength;
|
|
104 |
|
|
105 |
//Fixed Dialling numbers
|
|
106 |
TInt iFdnTotalEntries;
|
|
107 |
TInt iFdnMaximumTextLength;
|
|
108 |
TInt iFdnMaximumNumberLength;
|
|
109 |
|
|
110 |
//Service Dialling numbers
|
|
111 |
TInt iSdnTotalEntries;
|
|
112 |
TInt iSdnMaximumTextLength;
|
|
113 |
TInt iSdnMaximumNumberLength;
|
|
114 |
|
|
115 |
//Voice Mail Box
|
|
116 |
TInt iVmbTotalEntries;
|
|
117 |
TInt iVmbMaximumTextLength;
|
|
118 |
TInt iVmbMaximumNumberLength;
|
|
119 |
TInt iVmbCapabilities;
|
|
120 |
|
|
121 |
//Mailbox dialling numbers
|
|
122 |
TInt iMbdnTotalEntries;
|
|
123 |
TInt iMbdnMaximumTextLength;
|
|
124 |
TInt iMbdnMaximumNumberLength;
|
|
125 |
TInt iMbdnCapabilities;
|
|
126 |
|
|
127 |
//3G Information - Second Names
|
|
128 |
TInt iSecondNameMaximumFieldsPerEntry;
|
|
129 |
TInt iSecondNameMaximumLength;
|
|
130 |
|
|
131 |
//3G Information - Email Address
|
|
132 |
TInt iEmailMaximumFieldsPerEntry;
|
|
133 |
TInt iEmailMaximumLength;
|
|
134 |
|
|
135 |
//3G Information - Additional Number
|
|
136 |
TInt iAdditionalNumberMaximumFieldsPerEntry;
|
|
137 |
TInt iAdditionalNumberMaximumLength;
|
|
138 |
};
|
|
139 |
|
|
140 |
|
|
141 |
struct TSmsData
|
|
142 |
{
|
|
143 |
public:
|
|
144 |
TBuf8<231> iSmsMsg;
|
|
145 |
TBuf<KMaxAddressBufferSize> iServiceCentre;
|
|
146 |
RMobilePhone::TMobileTON iMobileScTON;
|
|
147 |
RMobilePhone::TMobileNPI iMobileScNPI;
|
|
148 |
TInt8 iMessageStatus;
|
|
149 |
};
|
|
150 |
|
|
151 |
}
|
|
152 |
|
|
153 |
|
|
154 |
class MLtsyDispatchPhonebookStoreReadEntry : public MLtsyDispatchInterface
|
|
155 |
{
|
|
156 |
public:
|
|
157 |
|
|
158 |
static const TInt KLtsyDispatchPhonebookStoreReadEntryApiId = KDispatchPhonebookFuncUnitId + 1;
|
|
159 |
|
|
160 |
/**
|
|
161 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyPhoneBookStoreReadIPC
|
|
162 |
* request from the CTSY.
|
|
163 |
*
|
|
164 |
* It is a request call that is completed by invoking
|
|
165 |
* CCtsyDispatcherCallback::CallbackPhonebookStoreReadEntryComp()
|
|
166 |
*
|
|
167 |
* Implementation of this interface should request to read a number of entries from a given phonebook.
|
|
168 |
* The entries are returned in the callback.
|
|
169 |
*
|
|
170 |
*
|
|
171 |
* @param aPhonebook The phonebook to read entries from.
|
|
172 |
* @param aIndex Specifies the index to start reading from, must be >= 1.
|
|
173 |
* @param aNumSlots Specifies the number of slots to read, must be >= 1 and <= total number of slots.
|
|
174 |
*
|
|
175 |
*
|
|
176 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
177 |
* failure.
|
|
178 |
*
|
|
179 |
* @see RMobilePhoneBookStore::Read()
|
|
180 |
*/
|
|
181 |
virtual TInt HandleStoreReadEntryReqL(DispatcherPhonebook::TPhonebook aPhonebook, TInt aIndex, TInt aNumberOfSlots) = 0;
|
|
182 |
|
|
183 |
}; // class MLtsyDispatchPhonebookStoreReadEntry
|
|
184 |
|
|
185 |
|
|
186 |
|
|
187 |
class MLtsyDispatchPhonebookStoreDeleteEntry : public MLtsyDispatchInterface
|
|
188 |
{
|
|
189 |
public:
|
|
190 |
|
|
191 |
static const TInt KLtsyDispatchPhonebookStoreDeleteEntryApiId = KDispatchPhonebookFuncUnitId + 2;
|
|
192 |
|
|
193 |
/**
|
|
194 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyPhoneBookStoreDeleteIPC
|
|
195 |
* request from the CTSY.
|
|
196 |
*
|
|
197 |
* It is a request call that is completed by invoking
|
|
198 |
* CCtsyDispatcherCallback::CallbackPhonebookStoreDeleteEntryComp()
|
|
199 |
*
|
|
200 |
* Implementation of this interface should request to delete an entry from a given phonebook, the
|
|
201 |
* callback indicates when the operation has been completed.
|
|
202 |
*
|
|
203 |
*
|
|
204 |
* @param aPhonebook The phonebook to delete an entry from.
|
|
205 |
* @param aIndex The entry index in the phonebook to delete.
|
|
206 |
*
|
|
207 |
*
|
|
208 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
209 |
* failure.
|
|
210 |
*
|
|
211 |
* @see RMobilePhoneBookStore::Delete()
|
|
212 |
*
|
|
213 |
*/
|
|
214 |
virtual TInt HandleStoreDeleteEntryReqL(DispatcherPhonebook::TPhonebook aPhonebook, TInt aIndex) = 0;
|
|
215 |
|
|
216 |
}; // class MLtsyDispatchPhonebookStoreDeleteEntry
|
|
217 |
|
|
218 |
|
|
219 |
|
|
220 |
class MLtsyDispatchPhonebookStoreCache : public MLtsyDispatchInterface
|
|
221 |
{
|
|
222 |
public:
|
|
223 |
|
|
224 |
static const TInt KLtsyDispatchPhonebookStoreCacheApiId = KDispatchPhonebookFuncUnitId + 3;
|
|
225 |
|
|
226 |
/**
|
|
227 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyPhoneBookStoreCacheIPC
|
|
228 |
* request from the CTSY.
|
|
229 |
*
|
|
230 |
* It is a request call that is completed by invoking
|
|
231 |
* CCtsyDispatcherCallback::CallbackPhonebookStoreCacheComp()
|
|
232 |
*
|
|
233 |
* Implementation of this interface should request to cache a given phonebook, the entire
|
|
234 |
* phonebook entries are returned in the callback.
|
|
235 |
*
|
|
236 |
*
|
|
237 |
* @param aPhonebook The phonebook to cache.
|
|
238 |
*
|
|
239 |
*
|
|
240 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
241 |
* failure.
|
|
242 |
*/
|
|
243 |
virtual TInt HandleStoreCacheReqL(DispatcherPhonebook::TPhonebook aPhonebook) = 0;
|
|
244 |
|
|
245 |
}; // class MLtsyDispatchPhonebookStoreCache
|
|
246 |
|
|
247 |
|
|
248 |
|
|
249 |
class MLtsyDispatchPhonebookStoreCacheCancel : public MLtsyDispatchInterface
|
|
250 |
{
|
|
251 |
public:
|
|
252 |
|
|
253 |
static const TInt KLtsyDispatchPhonebookStoreCacheCancelApiId = KDispatchPhonebookFuncUnitId + 4;
|
|
254 |
|
|
255 |
/**
|
|
256 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyPhoneBookStoreCacheCancelIPC
|
|
257 |
* request from the CTSY.
|
|
258 |
*
|
|
259 |
* It is a request call that has no complete call.
|
|
260 |
*
|
|
261 |
*
|
|
262 |
* Implementation of this interface should request to cancel an outstanding cache of a given phonebook.
|
|
263 |
*
|
|
264 |
* @param aPhonebook The phonebook to cancel the pending cache.
|
|
265 |
*
|
|
266 |
*
|
|
267 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
268 |
* failure.
|
|
269 |
*/
|
|
270 |
virtual TInt HandleStoreCacheCancelReqL(DispatcherPhonebook::TPhonebook aPhonebook) = 0;
|
|
271 |
|
|
272 |
}; // class MLtsyDispatchPhonebookStoreCacheCancel
|
|
273 |
|
|
274 |
|
|
275 |
|
|
276 |
class MLtsyDispatchPhonebookStoreGetPhonebookInfo : public MLtsyDispatchInterface
|
|
277 |
{
|
|
278 |
public:
|
|
279 |
|
|
280 |
static const TInt KLtsyDispatchPhonebookStoreGetPhonebookInfoApiId = KDispatchPhonebookFuncUnitId + 5;
|
|
281 |
|
|
282 |
/**
|
|
283 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyPhoneBookStoreGetInfoIPC
|
|
284 |
* request from the CTSY.
|
|
285 |
*
|
|
286 |
* It is a request call that is completed by invoking
|
|
287 |
* CCtsyDispatcherCallback::CallbackPhonebookStoreGetPhonebookInfoComp()
|
|
288 |
*
|
|
289 |
* Implementation of this interface should request to get the information of a given phonebook. The
|
|
290 |
* callback should be completed with the information.
|
|
291 |
*
|
|
292 |
* This call to the LTSY is only used when the CTSY requires the information about the number of used entries
|
|
293 |
* in a phonebook, thus calls to RMobilePhoneBookStore::GetInfo() on cached phonebooks can be completed immediately
|
|
294 |
* as the CTSY will already hold this information.
|
|
295 |
*
|
|
296 |
*
|
|
297 |
* @param aPhonebook The phonebook to retrieve the information from.
|
|
298 |
*
|
|
299 |
*
|
|
300 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
301 |
* failure.
|
|
302 |
*
|
|
303 |
* @see RMobilePhoneBookStore::GetInfo()
|
|
304 |
*
|
|
305 |
*/
|
|
306 |
virtual TInt HandleStoreGetPhonebookInfoReqL(DispatcherPhonebook::TPhonebook aPhonebook) = 0;
|
|
307 |
|
|
308 |
}; // class MLtsyDispatchPhonebookStoreGetPhonebookInfo
|
|
309 |
|
|
310 |
|
|
311 |
|
|
312 |
class MLtsyDispatchPhonebookStoreInitialise : public MLtsyDispatchInterface
|
|
313 |
{
|
|
314 |
public:
|
|
315 |
|
|
316 |
static const TInt KLtsyDispatchPhonebookStoreInitialiseApiId = KDispatchPhonebookFuncUnitId + 6;
|
|
317 |
|
|
318 |
/**
|
|
319 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyPhoneBookStoreInitIPC
|
|
320 |
* request from the CTSY.
|
|
321 |
*
|
|
322 |
* It is a request call that is completed by invoking
|
|
323 |
* CCtsyDispatcherCallback::CallbackPhonebookStoreInitialiseComp()
|
|
324 |
*
|
|
325 |
* Implementation of this interface should request to initialise the phonebook store, the callback should
|
|
326 |
* be completed when store initialisation is completed.
|
|
327 |
*
|
|
328 |
*
|
|
329 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
330 |
* failure.
|
|
331 |
*/
|
|
332 |
virtual TInt HandleStoreInitialiseReqL() = 0;
|
|
333 |
|
|
334 |
}; // class MLtsyDispatchPhonebookStoreInitialise
|
|
335 |
|
|
336 |
|
|
337 |
|
|
338 |
class MLtsyDispatchPhonebookStoreDeleteAll : public MLtsyDispatchInterface
|
|
339 |
{
|
|
340 |
public:
|
|
341 |
|
|
342 |
static const TInt KLtsyDispatchPhonebookStoreDeleteAllApiId = KDispatchPhonebookFuncUnitId + 7;
|
|
343 |
|
|
344 |
/**
|
|
345 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyPhoneBookStoreDeleteAllIPC
|
|
346 |
* request from the CTSY.
|
|
347 |
*
|
|
348 |
* It is a request call that is completed by invoking
|
|
349 |
* CCtsyDispatcherCallback::CallbackPhonebookStoreDeleteAllComp()
|
|
350 |
*
|
|
351 |
* Implementation of this interface should request to delete all entries from a given phonebook, the
|
|
352 |
* callback indicates when the operation is completed.
|
|
353 |
*
|
|
354 |
*
|
|
355 |
* @param aPhonebook The phonebook to delete all entries from.
|
|
356 |
*
|
|
357 |
*
|
|
358 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
359 |
* failure.
|
|
360 |
*
|
|
361 |
* @see RMobilePhoneBookStore::DeleteAll()
|
|
362 |
*
|
|
363 |
*/
|
|
364 |
virtual TInt HandleStoreDeleteAllReqL(DispatcherPhonebook::TPhonebook aPhonebook) = 0;
|
|
365 |
|
|
366 |
}; // class MLtsyDispatchPhonebookStoreDeleteAll
|
|
367 |
|
|
368 |
|
|
369 |
|
|
370 |
class MLtsyDispatchPhonebookStoreWriteEntry : public MLtsyDispatchInterface
|
|
371 |
{
|
|
372 |
public:
|
|
373 |
|
|
374 |
static const TInt KLtsyDispatchPhonebookStoreWriteEntryApiId = KDispatchPhonebookFuncUnitId + 8;
|
|
375 |
|
|
376 |
/**
|
|
377 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyPhoneBookStoreWriteIPC
|
|
378 |
* request from the CTSY.
|
|
379 |
*
|
|
380 |
* It is a request call that is completed by invoking
|
|
381 |
* CCtsyDispatcherCallback::CallbackPhonebookStoreWriteEntryComp()
|
|
382 |
*
|
|
383 |
* Implementation of this interface should request to write an entry to a given phonebook.
|
|
384 |
* The callback indicates when the operation is complete.
|
|
385 |
*
|
|
386 |
*
|
|
387 |
* @param aPhonebook The phonebook to be written to.
|
|
388 |
* @param aEntry The entry to be written, this is coded as a TLV, this can be decoded either
|
|
389 |
* directly via a CPhoneBookBuffer() or via the CPhoneBookEntry::InternalizeFromTlvEntry() utility.
|
|
390 |
*
|
|
391 |
*
|
|
392 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
393 |
* failure.
|
|
394 |
*
|
|
395 |
* @see RMobilePhoneBookStore::Write()
|
|
396 |
* @see CPhoneBookBuffer()
|
|
397 |
* @see CPhoneBookEntry::InternalizeFromTlvEntry()
|
|
398 |
*
|
|
399 |
*/
|
|
400 |
virtual TInt HandleStoreWriteEntryReqL(DispatcherPhonebook::TPhonebook aPhonebook, const TDesC8& aEntry) = 0;
|
|
401 |
|
|
402 |
}; // class MLtsyDispatchPhonebookStoreWriteEntry
|
|
403 |
|
|
404 |
|
|
405 |
|
|
406 |
class MLtsyDispatchPhonebookGetPhoneStoreInfo : public MLtsyDispatchInterface
|
|
407 |
{
|
|
408 |
public:
|
|
409 |
|
|
410 |
static const TInt KLtsyDispatchPhonebookGetPhoneStoreInfoApiId = KDispatchPhonebookFuncUnitId + 9;
|
|
411 |
|
|
412 |
/**
|
|
413 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneGetPhoneStoreInfo
|
|
414 |
* request from the CTSY.
|
|
415 |
*
|
|
416 |
* It is a request call that is completed by invoking
|
|
417 |
* CCtsyDispatcherCallback::CallbackPhonebookGetPhoneStoreInfoComp()
|
|
418 |
*
|
|
419 |
* Implementation of this interface should request to get the information of a given store. The
|
|
420 |
* callback should be completed with the information.
|
|
421 |
*
|
|
422 |
*
|
|
423 |
* @param aStoreName The name of the store to retrieve the information from (e.g. KETelIccFdnPhoneBook).
|
|
424 |
*
|
|
425 |
*
|
|
426 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
427 |
* failure.
|
|
428 |
*
|
|
429 |
* @see RMobilePhone::GetPhoneStoreInfo()
|
|
430 |
*/
|
|
431 |
virtual TInt HandleGetPhoneStoreInfoReqL(const TDesC& aStoreName) = 0;
|
|
432 |
|
|
433 |
}; // class MLtsyDispatchPhonebookGetPhoneStoreInfo
|
|
434 |
|
|
435 |
|
|
436 |
|
|
437 |
class MLtsyDispatchPhonebookSmsStoreReadAll : public MLtsyDispatchInterface
|
|
438 |
{
|
|
439 |
public:
|
|
440 |
|
|
441 |
static const TInt KLtsyDispatchPhonebookSmsStoreReadAllApiId = KDispatchPhonebookFuncUnitId + 10;
|
|
442 |
|
|
443 |
/**
|
|
444 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneStoreReadAllPhase1
|
|
445 |
* request from the CTSY.
|
|
446 |
*
|
|
447 |
* It is a request call that is completed by invoking
|
|
448 |
* CCtsyDispatcherCallback::CallbackPhonebookSmsStoreReadAllComp()
|
|
449 |
*
|
|
450 |
* Implementation of this interface should handle phase 1 of reading all entries in the SMS storage.
|
|
451 |
*
|
|
452 |
*
|
|
453 |
*
|
|
454 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
455 |
* failure.
|
|
456 |
*/
|
|
457 |
virtual TInt HandleSmsStoreReadAllReqL() = 0;
|
|
458 |
|
|
459 |
}; // class MLtsyDispatchPhonebookSmsStoreReadAll
|
|
460 |
|
|
461 |
|
|
462 |
|
|
463 |
class MLtsyDispatchPhonebookSmsStoreDeleteEntry : public MLtsyDispatchInterface
|
|
464 |
{
|
|
465 |
public:
|
|
466 |
|
|
467 |
static const TInt KLtsyDispatchPhonebookSmsStoreDeleteEntryApiId = KDispatchPhonebookFuncUnitId + 11;
|
|
468 |
|
|
469 |
/**
|
|
470 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneStoreDelete
|
|
471 |
* request from the CTSY.
|
|
472 |
*
|
|
473 |
* It is a request call that is completed by invoking
|
|
474 |
* CCtsyDispatcherCallback::CallbackPhonebookSmsStoreDeleteEntryComp()
|
|
475 |
*
|
|
476 |
* Implementation of this interface should handle deletion of an entry in the SMS storage.
|
|
477 |
*
|
|
478 |
* @param aIndex index of the entry to be deleted.
|
|
479 |
*
|
|
480 |
*
|
|
481 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
482 |
* failure.
|
|
483 |
*/
|
|
484 |
virtual TInt HandleSmsStoreDeleteEntryReqL(TInt aIndex) = 0;
|
|
485 |
|
|
486 |
}; // class MLtsyDispatchPhonebookSmsStoreDeleteEntry
|
|
487 |
|
|
488 |
|
|
489 |
|
|
490 |
class MLtsyDispatchPhonebookSmsStoreDeleteAll : public MLtsyDispatchInterface
|
|
491 |
{
|
|
492 |
public:
|
|
493 |
|
|
494 |
static const TInt KLtsyDispatchPhonebookSmsStoreDeleteAllApiId = KDispatchPhonebookFuncUnitId + 12;
|
|
495 |
|
|
496 |
/**
|
|
497 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneStoreDeleteAll
|
|
498 |
* request from the CTSY.
|
|
499 |
*
|
|
500 |
* Implementation of this interface should handle deletion of all entries in the SMS storage.
|
|
501 |
*
|
|
502 |
*
|
|
503 |
* It is a request call that is completed by invoking
|
|
504 |
* CCtsyDispatcherCallback::CallbackPhonebookSmsStoreDeleteAllComp()
|
|
505 |
*
|
|
506 |
*
|
|
507 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
508 |
* failure.
|
|
509 |
*/
|
|
510 |
virtual TInt HandleSmsStoreDeleteAllReqL() = 0;
|
|
511 |
|
|
512 |
}; // class MLtsyDispatchPhonebookSmsStoreDeleteAll
|
|
513 |
|
|
514 |
|
|
515 |
|
|
516 |
class MLtsyDispatchPhonebookSmsStoreGetInfo : public MLtsyDispatchInterface
|
|
517 |
{
|
|
518 |
public:
|
|
519 |
|
|
520 |
static const TInt KLtsyDispatchPhonebookSmsStoreGetInfoApiId = KDispatchPhonebookFuncUnitId + 13;
|
|
521 |
|
|
522 |
/**
|
|
523 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneStoreGetInfo
|
|
524 |
* request from the CTSY.
|
|
525 |
*
|
|
526 |
* Implementation of this interface should handle retrieval information of the SMS storage.
|
|
527 |
*
|
|
528 |
*
|
|
529 |
* It is a request call that is completed by invoking
|
|
530 |
* CCtsyDispatcherCallback::CallbackPhonebookSmsStoreGetInfoComp()
|
|
531 |
*
|
|
532 |
*
|
|
533 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
534 |
* failure.
|
|
535 |
*/
|
|
536 |
virtual TInt HandleSmsStoreGetInfoReqL() = 0;
|
|
537 |
|
|
538 |
}; // class MLtsyDispatchPhonebookSmsStoreGetInfo
|
|
539 |
|
|
540 |
|
|
541 |
|
|
542 |
class MLtsyDispatchPhonebookSmsStoreReadEntry : public MLtsyDispatchInterface
|
|
543 |
{
|
|
544 |
public:
|
|
545 |
|
|
546 |
static const TInt KLtsyDispatchPhonebookSmsStoreReadEntryApiId = KDispatchPhonebookFuncUnitId + 14;
|
|
547 |
|
|
548 |
/**
|
|
549 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneStoreRead
|
|
550 |
* request from the CTSY.
|
|
551 |
*
|
|
552 |
* It is a request call that is completed by invoking
|
|
553 |
* CCtsyDispatcherCallback::CallbackPhonebookSmsStoreReadEntryComp()
|
|
554 |
*
|
|
555 |
* Implementation of this interface should handle reading of an entry in the SMS storage.
|
|
556 |
*
|
|
557 |
* @param aIndex the index of the entry to read from.
|
|
558 |
*
|
|
559 |
*
|
|
560 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
561 |
* failure.
|
|
562 |
*/
|
|
563 |
virtual TInt HandleSmsStoreReadEntryReqL(TInt aIndex) = 0;
|
|
564 |
|
|
565 |
}; // class MLtsyDispatchPhonebookSmsStoreReadEntry
|
|
566 |
|
|
567 |
|
|
568 |
|
|
569 |
class MLtsyDispatchPhonebookSmsStoreWriteEntry : public MLtsyDispatchInterface
|
|
570 |
{
|
|
571 |
public:
|
|
572 |
|
|
573 |
static const TInt KLtsyDispatchPhonebookSmsStoreWriteEntryApiId = KDispatchPhonebookFuncUnitId + 15;
|
|
574 |
|
|
575 |
/**
|
|
576 |
* The CTSY Dispatcher shall invoke this function on receiving the EMobilePhoneStoreWrite
|
|
577 |
* request from the CTSY.
|
|
578 |
*
|
|
579 |
* It is a request call that is completed by invoking
|
|
580 |
* CCtsyDispatcherCallback::CallbackPhonebookSmsStoreWriteEntryComp()
|
|
581 |
*
|
|
582 |
* Implementation of this interface should handle the storing of a Gsm Sms entry.
|
|
583 |
*
|
|
584 |
* Defines contents of a fixed-size, stored GSM SMS entry.
|
|
585 |
*
|
|
586 |
* @param aMobileGsmEntry Defines contents of a fixed-size GSM SMS entry to be stored.
|
|
587 |
*
|
|
588 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
589 |
* failure.
|
|
590 |
*/
|
|
591 |
virtual TInt HandleSmsStoreWriteEntryReqL(const RMobileSmsStore::TMobileGsmSmsEntryV1& aMobileGsmEntry) = 0;
|
|
592 |
|
|
593 |
}; // class MLtsyDispatchPhonebookSmsStoreWriteEntry
|
|
594 |
|
|
595 |
|
|
596 |
#endif /*MLTSYDISPATCHPHONEBOOKINTERFACE_H_*/
|