111 * |
113 * |
112 * @param aPimListType List type. |
114 * @param aPimListType List type. |
113 * @param aPimListName Name of the list. The name must be valid list |
115 * @param aPimListName Name of the list. The name must be valid list |
114 * name. If not present, name is resolved to the default list |
116 * name. If not present, name is resolved to the default list |
115 * of the given type. |
117 * of the given type. |
|
118 * @param aCalName Name of the Canlendar. The name must be valid Canlendar |
|
119 * name. If not present, name is resolved to the default Canlendar. |
116 * |
120 * |
117 * @return PIM list. Type of the list corresponds to |
121 * @return PIM list. Type of the list corresponds to |
118 * \a aPimListType argument. |
122 * \a aPimListType argument. |
119 * |
123 * |
120 * @par Leaving: |
124 * @par Leaving: |
147 |
152 |
148 jobjectArray listPimLists( |
153 jobjectArray listPimLists( |
149 const TPIMListType& aPimListType, |
154 const TPIMListType& aPimListType, |
150 jintArray aError, |
155 jintArray aError, |
151 JNIEnv* aJniEnv); |
156 JNIEnv* aJniEnv); |
|
157 /** |
|
158 * Lists list of Calendars existsing the mobile database. |
|
159 * |
|
160 * @return Array of list names. |
|
161 * Caller takes the ownership of the returned object. |
|
162 * |
|
163 */ |
|
164 jobjectArray listCalendars(jintArray aError, JNIEnv* aJniEnv); |
|
165 |
|
166 /** |
|
167 * Lists list of Calendars names existsing the mobile database. |
|
168 * |
|
169 * @return Array of list names. |
|
170 * Caller takes the ownership of the returned object. |
|
171 */ |
|
172 jobjectArray listCalendarNames(jintArray aError, JNIEnv* aJniEnv); |
|
173 |
|
174 /** |
|
175 * create new calendar which you given name. |
|
176 * |
|
177 * @param calendar name Sting type this is used as filename. |
|
178 * |
|
179 * @param calendar name Sting type this is used as diaplay to the user. |
|
180 * |
|
181 * @return void. |
|
182 * |
|
183 * @par Leaving: |
|
184 * @li \c KErrArgument - \if name already exists |
|
185 */ |
|
186 void createCalendar(jstring aCalName, jstring aDisplayName, JNIEnv* aJniEnv); |
|
187 |
|
188 /** |
|
189 * delete the calendar which you given name. |
|
190 * |
|
191 * @param calendar name Sting type this is used as canlader filename |
|
192 * which it will delete. |
|
193 * @return void. |
|
194 * |
|
195 * @par Leaving: |
|
196 * @li \c KErrArgument - \a calendar name is not valid or not exists. |
|
197 */ |
|
198 void deleteCalendar(jstring aCalName, JNIEnv* aJniEnv); |
152 |
199 |
153 /** |
200 /** |
154 * Provides a Contact validator. |
201 * Provides a Contact validator. |
155 */ |
202 */ |
156 const CPIMContactValidator& ContactValidator(); |
203 const CPIMContactValidator& ContactValidator(); |
185 * default list. |
232 * default list. |
186 * |
233 * |
187 * @return A new list or NULL if no matching list was found. |
234 * @return A new list or NULL if no matching list was found. |
188 */ |
235 */ |
189 CPIMEventList* DoOpenEventListL( |
236 CPIMEventList* DoOpenEventListL( |
190 const TDesC* aListName); |
237 const TDesC* aListName, const TDesC* aCalName); |
191 |
238 |
192 /** |
239 /** |
193 * Opens a to-do list. |
240 * Opens a to-do list. |
194 * |
241 * |
195 * @param aListName Name of the list or NULL to indicate |
242 * @param aListName Name of the list or NULL to indicate |
196 * default list. |
243 * default list. |
197 * |
244 * @param aCalName Name of the calendar or NULL to indicate |
198 * @return A new list or NULL if no matching list was found. |
245 * default calendar. |
199 */ |
246 * @return A new list or NULL if no matching list and calendar was found. |
200 CPIMToDoList* DoOpenToDoListL( |
247 */ |
201 const TDesC* aListName); |
248 CPIMToDoList* DoOpenToDoListL(const TDesC* aListName, const TDesC* aCalName); |
202 |
249 |
203 CDesCArray* DoListPimListsL( |
250 |
|
251 /** |
|
252 * Opens a to-do list. |
|
253 * |
|
254 * @param aPimListType Name of the list or NULL to indicate |
|
255 * default list. |
|
256 * @return A new list or NULL if no matching list and calendar was found. |
|
257 */ |
|
258 CDesCArray* CPIMManager::DoListPimListsL( |
204 const TPIMListType& aPimListType); |
259 const TPIMListType& aPimListType); |
205 |
260 |
206 pimbaselist* DoOpenPimListL( |
261 /** |
|
262 * list all the calendars this function will call by ListCalendars function |
|
263 * |
|
264 * @return void. |
|
265 */ |
|
266 void CPIMManager::DoListCalendarsL(); |
|
267 |
|
268 /** |
|
269 * list all the calendars names this function will call by ListCalendatNames function |
|
270 * |
|
271 * @return void. |
|
272 */ |
|
273 void CPIMManager::DoListCalendarNamesL(); |
|
274 |
|
275 |
|
276 /** |
|
277 * creates the new calendar by given name. |
|
278 * |
|
279 * @param aFileName name of the calendar file this is string type. |
|
280 * |
|
281 * @param aDisplayName name of the calendar to display this is string type |
|
282 * |
|
283 * @return void. |
|
284 */ |
|
285 void CPIMManager::DoCreateCalFileL(const TDesC &aFileName,const TDesC &aDisplayName); |
|
286 |
|
287 /** |
|
288 * delets the calendar by given name. |
|
289 * |
|
290 * @param aFileName name of the calendar file this is string type. |
|
291 * |
|
292 * @return void. |
|
293 */ |
|
294 void CPIMManager::DoDeleteCalFileL(const TDesC& aFileName); |
|
295 |
|
296 /** |
|
297 * Opens a PIM list of given type. |
|
298 * |
|
299 * @param aPimListType List type. |
|
300 * @param aPimListName Name of the list. The name must be valid list |
|
301 * name. If not present, name is resolved to the default list |
|
302 * of the given type. |
|
303 * @param aCalName Name of the Canlendar. The name must be valid Canlendar |
|
304 * name. If not present, name is resolved to the default Canlendar. |
|
305 * |
|
306 * @return PIM list. Type of the list corresponds to |
|
307 * \a aPimListType argument. |
|
308 * |
|
309 * @par Leaving: |
|
310 * The method leaves on error. Error codes should be interpreted as |
|
311 * follows: |
|
312 * @li \c KErrArgument - \a aPimListType is invalid. |
|
313 * @li \c KErrNotSupported - \a aPimListType is not supported. |
|
314 * @li \c KErrNotFound - No list was found by \a aPimListName. |
|
315 * @li \c KErrAlreadyExists - The list was already opened and multiple |
|
316 * instances of the list are not supported. |
|
317 * @li Other - Internal error. |
|
318 */ |
|
319 pimbaselist* CPIMManager::DoOpenPimListL( |
207 const TPIMListType& aPimListType, |
320 const TPIMListType& aPimListType, |
208 const TDesC* aPimListName); |
321 const TDesC* aPimListName, |
|
322 const TDesC* aCalName); |
|
323 /** |
|
324 * this method will create the Sessions with every calendar using file server. |
|
325 * |
|
326 */ |
|
327 |
|
328 void CPIMManager::createCalSessionL(); |
209 |
329 |
210 void dispose(); |
330 void dispose(); |
|
331 |
211 |
332 |
212 private: // Constructors |
333 private: // Constructors |
213 |
334 |
214 /** |
335 /** |
215 * C++ default constructor. |
336 * C++ default constructor. |
238 CPIMEventValidator* iEventValidator; |
359 CPIMEventValidator* iEventValidator; |
239 |
360 |
240 /** Owned. */ |
361 /** Owned. */ |
241 CPIMToDoValidator* iToDoValidator; |
362 CPIMToDoValidator* iToDoValidator; |
242 |
363 |
|
364 /** (Owned.) */ |
|
365 RLibrary iLocalizationLibrary; |
|
366 |
|
367 CDesCArray* iCalList; |
|
368 /** Session to calendar server. Owned. */ |
|
369 //CCalSession* iCalSession; |
|
370 |
|
371 RPointerArray<CCalSession> iCalSessions; |
|
372 |
|
373 CDesCArray* iCalendarNamesDesCArray; |
|
374 |
|
375 CDesCArray* iCalSessionArray; |
|
376 |
|
377 CDesCArray* iCalListName; |
|
378 CDesCArrayFlat* iDesCArray; |
|
379 CCalSession* iCalSession; |
|
380 |
243 |
381 |
244 }; |
382 }; |
245 |
383 |
246 #endif // CPIMMANAGER_H |
384 #endif // CPIMMANAGER_H |
247 // End of File |
385 // End of File |