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 PhonebookOn related features.
|
|
16 |
//
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
/**
|
|
22 |
@file
|
|
23 |
@publishedPartner
|
|
24 |
@released
|
|
25 |
*/
|
|
26 |
|
|
27 |
|
|
28 |
#ifndef MLTSYDISPATCHPHONEBOOKONINTERFACE_H_
|
|
29 |
#define MLTSYDISPATCHPHONEBOOKONINTERFACE_H_
|
|
30 |
|
|
31 |
#include <ctsy/ltsy/mltsydispatchinterface.h>
|
|
32 |
#include <etelmm.h>
|
|
33 |
|
|
34 |
class MLtsyDispatchPhonebookOnStoreRead : public MLtsyDispatchInterface
|
|
35 |
{
|
|
36 |
public:
|
|
37 |
|
|
38 |
static const TInt KLtsyDispatchPhonebookOnStoreReadApiId = KDispatchPhonebookOnFuncUnitId + 1;
|
|
39 |
|
|
40 |
/**
|
|
41 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyONStoreReadIPC
|
|
42 |
* request from the CTSY.
|
|
43 |
*
|
|
44 |
* It is a request call that is completed by invoking
|
|
45 |
* CCtsyDispatcherCallback::CallbackPhonebookOnStoreReadComp()
|
|
46 |
*
|
|
47 |
* Implementation of this interface should handle reading a ON entry from the storage.
|
|
48 |
*
|
|
49 |
*
|
|
50 |
* @param aIndex index of the ON entry.
|
|
51 |
*
|
|
52 |
*
|
|
53 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
54 |
* failure.
|
|
55 |
*/
|
|
56 |
virtual TInt HandleStoreReadReqL(TInt aIndex) = 0;
|
|
57 |
|
|
58 |
}; // class MLtsyDispatchPhonebookOnStoreRead
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
class MLtsyDispatchPhonebookOnStoreDeleteAll : public MLtsyDispatchInterface
|
|
63 |
{
|
|
64 |
public:
|
|
65 |
|
|
66 |
static const TInt KLtsyDispatchPhonebookOnStoreDeleteAllApiId = KDispatchPhonebookOnFuncUnitId + 2;
|
|
67 |
|
|
68 |
/**
|
|
69 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyONStoreDeleteAllIPC
|
|
70 |
* request from the CTSY.
|
|
71 |
*
|
|
72 |
* It is a request call that is completed by invoking
|
|
73 |
* CCtsyDispatcherCallback::CallbackPhonebookOnStoreDeleteAllComp()
|
|
74 |
*
|
|
75 |
* Implementation of this interface should handle deletion of all entries of the storage.
|
|
76 |
*
|
|
77 |
*
|
|
78 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
79 |
* failure.
|
|
80 |
*/
|
|
81 |
virtual TInt HandleStoreDeleteAllReqL() = 0;
|
|
82 |
|
|
83 |
}; // class MLtsyDispatchPhonebookOnStoreDeleteAll
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
class MLtsyDispatchPhonebookOnStoreReadEntry : public MLtsyDispatchInterface
|
|
88 |
{
|
|
89 |
public:
|
|
90 |
|
|
91 |
static const TInt KLtsyDispatchPhonebookOnStoreReadEntryApiId = KDispatchPhonebookOnFuncUnitId + 3;
|
|
92 |
|
|
93 |
/**
|
|
94 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyONStoreReadEntryIPC
|
|
95 |
* request from the CTSY.
|
|
96 |
*
|
|
97 |
* It is a request call that is completed by invoking
|
|
98 |
* CCtsyDispatcherCallback::CallbackPhonebookOnStoreReadEntryComp()
|
|
99 |
*
|
|
100 |
* Implementation of this interface should handle reading an entry from ON storage as one step of reading of all entries.
|
|
101 |
*
|
|
102 |
*
|
|
103 |
* @param aIndex index of the entry,
|
|
104 |
*
|
|
105 |
*
|
|
106 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
107 |
* failure.
|
|
108 |
*/
|
|
109 |
virtual TInt HandleStoreReadEntryReqL(TInt aIndex) = 0;
|
|
110 |
|
|
111 |
}; // class MLtsyDispatchPhonebookOnStoreReadEntry
|
|
112 |
|
|
113 |
|
|
114 |
|
|
115 |
class MLtsyDispatchPhonebookOnStoreGetInfo : public MLtsyDispatchInterface
|
|
116 |
{
|
|
117 |
public:
|
|
118 |
|
|
119 |
static const TInt KLtsyDispatchPhonebookOnStoreGetInfoApiId = KDispatchPhonebookOnFuncUnitId + 4;
|
|
120 |
|
|
121 |
/**
|
|
122 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyONStoreGetInfoIPC
|
|
123 |
* request from the CTSY.
|
|
124 |
*
|
|
125 |
* It is a request call that is completed by invoking
|
|
126 |
* CCtsyDispatcherCallback::CallbackPhonebookOnStoreGetInfoComp()
|
|
127 |
*
|
|
128 |
* Implementation of this interface should request to get the information of a given storage. The
|
|
129 |
* callback should be completed with the information.
|
|
130 |
*
|
|
131 |
*
|
|
132 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
133 |
* failure.
|
|
134 |
*/
|
|
135 |
virtual TInt HandleStoreGetInfoReqL() = 0;
|
|
136 |
|
|
137 |
}; // class MLtsyDispatchPhonebookOnStoreGetInfo
|
|
138 |
|
|
139 |
|
|
140 |
|
|
141 |
class MLtsyDispatchPhonebookOnStoreGetReadStoreSize : public MLtsyDispatchInterface
|
|
142 |
{
|
|
143 |
public:
|
|
144 |
|
|
145 |
static const TInt KLtsyDispatchPhonebookOnStoreGetReadStoreSizeApiId = KDispatchPhonebookOnFuncUnitId + 5;
|
|
146 |
|
|
147 |
/**
|
|
148 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyONStoreReadSizeIPC
|
|
149 |
* request from the CTSY.
|
|
150 |
*
|
|
151 |
* It is a request call that is completed by invoking
|
|
152 |
* CCtsyDispatcherCallback::CallbackPhonebookOnStoreGetReadStoreSizeComp()
|
|
153 |
*
|
|
154 |
* Implementation of this interface should handle retrieving the size of the storage for read all operation.
|
|
155 |
*
|
|
156 |
*
|
|
157 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
158 |
* failure.
|
|
159 |
*/
|
|
160 |
virtual TInt HandleStoreGetReadStoreSizeReqL() = 0;
|
|
161 |
|
|
162 |
}; // class MLtsyDispatchPhonebookOnStoreGetReadStoreSize
|
|
163 |
|
|
164 |
|
|
165 |
|
|
166 |
class MLtsyDispatchPhonebookOnStoreDeleteEntry : public MLtsyDispatchInterface
|
|
167 |
{
|
|
168 |
public:
|
|
169 |
|
|
170 |
static const TInt KLtsyDispatchPhonebookOnStoreDeleteEntryApiId = KDispatchPhonebookOnFuncUnitId + 6;
|
|
171 |
|
|
172 |
/**
|
|
173 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyONStoreDeleteIPC
|
|
174 |
* request from the CTSY.
|
|
175 |
*
|
|
176 |
* It is a request call that is completed by invoking
|
|
177 |
* CCtsyDispatcherCallback::CallbackPhonebookOnStoreDeleteEntryComp()
|
|
178 |
*
|
|
179 |
* Implementation of this interface should handle deletion of an ON entry.
|
|
180 |
*
|
|
181 |
*
|
|
182 |
* @param aIndex index of the ON entry.
|
|
183 |
*
|
|
184 |
*
|
|
185 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
186 |
* failure.
|
|
187 |
*/
|
|
188 |
virtual TInt HandleStoreDeleteEntryReqL(TInt aIndex) = 0;
|
|
189 |
|
|
190 |
}; // class MLtsyDispatchPhonebookOnStoreDeleteEntry
|
|
191 |
|
|
192 |
|
|
193 |
|
|
194 |
class MLtsyDispatchPhonebookOnStoreWriteEntry : public MLtsyDispatchInterface
|
|
195 |
{
|
|
196 |
public:
|
|
197 |
|
|
198 |
static const TInt KLtsyDispatchPhonebookOnStoreWriteEntryApiId = KDispatchPhonebookOnFuncUnitId + 7;
|
|
199 |
|
|
200 |
/**
|
|
201 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyONStoreWriteEntryIPC
|
|
202 |
* request from the CTSY.
|
|
203 |
*
|
|
204 |
* It is a request call that is completed by invoking
|
|
205 |
* CCtsyDispatcherCallback::CallbackPhonebookOnStoreWriteEntryComp()
|
|
206 |
*
|
|
207 |
* Implementation of this interface should handle storing of a ON entry as one step of storing of all entries in the ON storage.
|
|
208 |
*
|
|
209 |
*
|
|
210 |
* @param aMobileOnEntry defines contents of a fixed-size ON entry to be stored.
|
|
211 |
*
|
|
212 |
*
|
|
213 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
214 |
* failure.
|
|
215 |
*/
|
|
216 |
virtual TInt HandleStoreWriteEntryReqL(const RMobileONStore::TMobileONEntryV1& aMobileOnEntry) = 0;
|
|
217 |
|
|
218 |
}; // class MLtsyDispatchPhonebookOnStoreWriteEntry
|
|
219 |
|
|
220 |
|
|
221 |
|
|
222 |
class MLtsyDispatchPhonebookOnStoreWrite : public MLtsyDispatchInterface
|
|
223 |
{
|
|
224 |
public:
|
|
225 |
|
|
226 |
static const TInt KLtsyDispatchPhonebookOnStoreWriteApiId = KDispatchPhonebookOnFuncUnitId + 8;
|
|
227 |
|
|
228 |
/**
|
|
229 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyONStoreWriteIPC
|
|
230 |
* request from the CTSY.
|
|
231 |
*
|
|
232 |
* It is a request call that is completed by invoking
|
|
233 |
* CCtsyDispatcherCallback::CallbackPhonebookOnStoreWriteComp()
|
|
234 |
*
|
|
235 |
* Implementation of this interface should handle storing of a ON entry.
|
|
236 |
*
|
|
237 |
* @param aMobileOnEntry defines contents of a fixed-size ON entry to be stored.
|
|
238 |
*
|
|
239 |
*
|
|
240 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
241 |
* failure.
|
|
242 |
*/
|
|
243 |
virtual TInt HandleStoreWriteReqL(const RMobileONStore::TMobileONEntryV1& aMobileOnEntry) = 0;
|
|
244 |
|
|
245 |
}; // class MLtsyDispatchPhonebookOnStoreWrite
|
|
246 |
|
|
247 |
|
|
248 |
|
|
249 |
class MLtsyDispatchPhonebookOnStoreGetStoreSize : public MLtsyDispatchInterface
|
|
250 |
{
|
|
251 |
public:
|
|
252 |
|
|
253 |
static const TInt KLtsyDispatchPhonebookOnStoreGetStoreSizeApiId = KDispatchPhonebookOnFuncUnitId + 9;
|
|
254 |
|
|
255 |
/**
|
|
256 |
* The CTSY Dispatcher shall invoke this function on receiving the EMmTsyONStoreWriteSizeIPC
|
|
257 |
* request from the CTSY.
|
|
258 |
*
|
|
259 |
* It is a request call that is completed by invoking
|
|
260 |
* CCtsyDispatcherCallback::CallbackPhonebookOnStoreGetStoreSizeComp()
|
|
261 |
*
|
|
262 |
* Implementation of this interface should handle retrieving of the size of the storage.
|
|
263 |
*
|
|
264 |
*
|
|
265 |
* @return KErrNone on success, otherwise another error code indicating the
|
|
266 |
* failure.
|
|
267 |
*/
|
|
268 |
virtual TInt HandleStoreGetStoreSizeReqL() = 0;
|
|
269 |
|
|
270 |
}; // class MLtsyDispatchPhonebookOnStoreGetStoreSize
|
|
271 |
|
|
272 |
|
|
273 |
#endif /*MLTSYDISPATCHPHONEBOOKONINTERFACE_H_*/
|