serviceproviders/sapi_calendar/tsrc/dev/tcalendarprovidertest/tcalendarupdateiter3/src/tcalendarupdatetestblocks.cpp
equal
deleted
inserted
replaced
79 int UpdateDayEventWithGlobalIdL(); |
79 int UpdateDayEventWithGlobalIdL(); |
80 int UpdateReminderWithGlobalIdL(); |
80 int UpdateReminderWithGlobalIdL(); |
81 int UpdateTodoEntryWithGlobalIdL(); |
81 int UpdateTodoEntryWithGlobalIdL(); |
82 int UpdateAppointmentEntryWithNewTimeAndGlobalIdL(); |
82 int UpdateAppointmentEntryWithNewTimeAndGlobalIdL(); |
83 |
83 |
84 TDesC GetEntry(CLiwGenericParamList* inparam, CLiwGenericParamList* outparam, TPtrC globaluid, const TDesC& calname); |
84 TDesC& GetEntry(CLiwGenericParamList* inparam, CLiwGenericParamList* outparam, TPtrC globaluid, const TDesC& calname); |
85 CTestUpdateSync(); |
85 CTestUpdateSync(); |
86 ~CTestUpdateSync(); |
86 ~CTestUpdateSync(); |
87 |
87 |
88 private: |
88 private: |
89 void ConstructL(); |
89 void ConstructL(); |
195 __UHEAP_MARKEND; |
195 __UHEAP_MARKEND; |
196 return res; |
196 return res; |
197 |
197 |
198 |
198 |
199 // __UHEAP_MARKEND; |
199 // __UHEAP_MARKEND; |
200 // return result; |
200 return result; |
201 } |
201 } |
202 |
202 |
203 TInt CTCalendarUpdateTest::UpdateAppointmentEntryWithNewTimeL(CStifItemParser& /*aItem*/) |
203 TInt CTCalendarUpdateTest::UpdateAppointmentEntryWithNewTimeL(CStifItemParser& /*aItem*/) |
204 { |
204 { |
205 //__UHEAP_MARK; |
205 //__UHEAP_MARK; |
213 __UHEAP_MARKEND; |
213 __UHEAP_MARKEND; |
214 return res; |
214 return res; |
215 |
215 |
216 |
216 |
217 // __UHEAP_MARKEND; |
217 // __UHEAP_MARKEND; |
218 // return result; |
218 return result; |
219 } |
219 } |
220 |
220 |
221 TInt CTCalendarUpdateTest::UpdateAppointmentEntryWithNewAttendeesL(CStifItemParser& /*aItem*/) |
221 TInt CTCalendarUpdateTest::UpdateAppointmentEntryWithNewAttendeesL(CStifItemParser& /*aItem*/) |
222 { |
222 { |
223 //__UHEAP_MARK; |
223 //__UHEAP_MARK; |
231 __UHEAP_MARKEND; |
231 __UHEAP_MARKEND; |
232 return res; |
232 return res; |
233 |
233 |
234 |
234 |
235 // __UHEAP_MARKEND; |
235 // __UHEAP_MARKEND; |
236 // return result; |
236 return result; |
237 } |
237 } |
238 |
238 |
239 |
239 |
240 TInt CTCalendarUpdateTest::UpdateAnniversaryL(CStifItemParser& /*aItem*/) |
240 TInt CTCalendarUpdateTest::UpdateAnniversaryL(CStifItemParser& /*aItem*/) |
241 { |
241 { |
250 __UHEAP_MARKEND; |
250 __UHEAP_MARKEND; |
251 return res; |
251 return res; |
252 |
252 |
253 |
253 |
254 // __UHEAP_MARKEND; |
254 // __UHEAP_MARKEND; |
255 // return result; |
255 return result; |
256 } |
256 } |
257 |
257 |
258 TInt CTCalendarUpdateTest::UpdateDayEventL(CStifItemParser& /*aItem*/) |
258 TInt CTCalendarUpdateTest::UpdateDayEventL(CStifItemParser& /*aItem*/) |
259 { |
259 { |
260 //__UHEAP_MARK; |
260 //__UHEAP_MARK; |
268 __UHEAP_MARKEND; |
268 __UHEAP_MARKEND; |
269 return res; |
269 return res; |
270 |
270 |
271 |
271 |
272 // __UHEAP_MARKEND; |
272 // __UHEAP_MARKEND; |
273 // return result; |
273 return result; |
274 } |
274 } |
275 |
275 |
276 TInt CTCalendarUpdateTest::UpdateReminderL(CStifItemParser& /*aItem*/) |
276 TInt CTCalendarUpdateTest::UpdateReminderL(CStifItemParser& /*aItem*/) |
277 { |
277 { |
278 //__UHEAP_MARK; |
278 //__UHEAP_MARK; |
286 __UHEAP_MARKEND; |
286 __UHEAP_MARKEND; |
287 return res; |
287 return res; |
288 |
288 |
289 |
289 |
290 // __UHEAP_MARKEND; |
290 // __UHEAP_MARKEND; |
291 // return result; |
291 return result; |
292 } |
292 } |
293 TInt CTCalendarUpdateTest::UpdateTodoEntryL(CStifItemParser& /*aItem*/) |
293 TInt CTCalendarUpdateTest::UpdateTodoEntryL(CStifItemParser& /*aItem*/) |
294 { |
294 { |
295 //__UHEAP_MARK; |
295 //__UHEAP_MARK; |
296 |
296 |
303 __UHEAP_MARKEND; |
303 __UHEAP_MARKEND; |
304 return res; |
304 return res; |
305 |
305 |
306 |
306 |
307 // __UHEAP_MARKEND; |
307 // __UHEAP_MARKEND; |
308 // return result; |
308 return result; |
309 } |
309 } |
310 |
310 |
311 TInt CTCalendarUpdateTest::UpdateAppointmentEntryWithNewRepeatL(CStifItemParser& /*aItem*/) |
311 TInt CTCalendarUpdateTest::UpdateAppointmentEntryWithNewRepeatL(CStifItemParser& /*aItem*/) |
312 { |
312 { |
313 //__UHEAP_MARK; |
313 //__UHEAP_MARK; |
321 __UHEAP_MARKEND; |
321 __UHEAP_MARKEND; |
322 return res; |
322 return res; |
323 |
323 |
324 |
324 |
325 // __UHEAP_MARKEND; |
325 // __UHEAP_MARKEND; |
326 // return result; |
326 return result; |
327 } |
327 } |
328 TInt CTCalendarUpdateTest::UpdateAppointmentEntryWithGlobalIdL(CStifItemParser& /*aItem*/) |
328 TInt CTCalendarUpdateTest::UpdateAppointmentEntryWithGlobalIdL(CStifItemParser& /*aItem*/) |
329 { |
329 { |
330 //__UHEAP_MARK; |
330 //__UHEAP_MARK; |
331 |
331 |
338 __UHEAP_MARKEND; |
338 __UHEAP_MARKEND; |
339 return res; |
339 return res; |
340 |
340 |
341 |
341 |
342 // __UHEAP_MARKEND; |
342 // __UHEAP_MARKEND; |
343 // return result; |
343 return result; |
344 } |
344 } |
345 |
345 |
346 TInt CTCalendarUpdateTest::UpdateAnniversaryWithGlobalIdL(CStifItemParser& /*aItem*/) |
346 TInt CTCalendarUpdateTest::UpdateAnniversaryWithGlobalIdL(CStifItemParser& /*aItem*/) |
347 { |
347 { |
348 //__UHEAP_MARK; |
348 //__UHEAP_MARK; |
356 __UHEAP_MARKEND; |
356 __UHEAP_MARKEND; |
357 return res; |
357 return res; |
358 |
358 |
359 |
359 |
360 // __UHEAP_MARKEND; |
360 // __UHEAP_MARKEND; |
361 //return result; |
361 return result; |
362 } |
362 } |
363 |
363 |
364 TInt CTCalendarUpdateTest::UpdateDayEventWithGlobalIdL(CStifItemParser& /*aItem*/) |
364 TInt CTCalendarUpdateTest::UpdateDayEventWithGlobalIdL(CStifItemParser& /*aItem*/) |
365 { |
365 { |
366 //__UHEAP_MARK; |
366 //__UHEAP_MARK; |
374 __UHEAP_MARKEND; |
374 __UHEAP_MARKEND; |
375 return res; |
375 return res; |
376 |
376 |
377 |
377 |
378 // __UHEAP_MARKEND; |
378 // __UHEAP_MARKEND; |
379 //return result; |
379 return result; |
380 } |
380 } |
381 |
381 |
382 TInt CTCalendarUpdateTest::UpdateReminderWithGlobalIdL(CStifItemParser& /*aItem*/) |
382 TInt CTCalendarUpdateTest::UpdateReminderWithGlobalIdL(CStifItemParser& /*aItem*/) |
383 { |
383 { |
384 //__UHEAP_MARK; |
384 //__UHEAP_MARK; |
392 __UHEAP_MARKEND; |
392 __UHEAP_MARKEND; |
393 return res; |
393 return res; |
394 |
394 |
395 |
395 |
396 // __UHEAP_MARKEND; |
396 // __UHEAP_MARKEND; |
397 //return result; |
397 return result; |
398 } |
398 } |
399 TInt CTCalendarUpdateTest::UpdateTodoEntryWithGlobalIdL(CStifItemParser& /*aItem*/) |
399 TInt CTCalendarUpdateTest::UpdateTodoEntryWithGlobalIdL(CStifItemParser& /*aItem*/) |
400 { |
400 { |
401 //__UHEAP_MARK; |
401 //__UHEAP_MARK; |
402 |
402 |
409 __UHEAP_MARKEND; |
409 __UHEAP_MARKEND; |
410 return res; |
410 return res; |
411 |
411 |
412 |
412 |
413 // __UHEAP_MARKEND; |
413 // __UHEAP_MARKEND; |
414 //return result; |
414 return result; |
415 } |
415 } |
416 TInt CTCalendarUpdateTest::UpdateAppointmentEntryWithNewTimeAndGlobalIdL(CStifItemParser& /*aItem*/) |
416 TInt CTCalendarUpdateTest::UpdateAppointmentEntryWithNewTimeAndGlobalIdL(CStifItemParser& /*aItem*/) |
417 { |
417 { |
418 //__UHEAP_MARK; |
418 //__UHEAP_MARK; |
419 |
419 |
426 __UHEAP_MARKEND; |
426 __UHEAP_MARKEND; |
427 return res; |
427 return res; |
428 |
428 |
429 |
429 |
430 // __UHEAP_MARKEND; |
430 // __UHEAP_MARKEND; |
431 //return result; |
431 return result; |
432 } |
432 } |
433 |
433 |
434 TInt CTestUpdateSync::UpdateAppointmentEntryL() |
434 TInt CTestUpdateSync::UpdateAppointmentEntryL() |
435 { |
435 { |
436 iServiceHandler = CLiwServiceHandler::NewL(); |
436 iServiceHandler = CLiwServiceHandler::NewL(); |
2653 RemoveProvCalendar(inparam, outparam, interface, KKCalFileName11); |
2653 RemoveProvCalendar(inparam, outparam, interface, KKCalFileName11); |
2654 return retvalue; |
2654 return retvalue; |
2655 } |
2655 } |
2656 |
2656 |
2657 |
2657 |
2658 TDesC CTestUpdateSync::GetEntry(CLiwGenericParamList* inparam, CLiwGenericParamList* outparam, TPtrC globaluid, const TDesC& calname) |
2658 TDesC& CTestUpdateSync::GetEntry(CLiwGenericParamList* inparam, CLiwGenericParamList* outparam, TPtrC globaluid, const TDesC& calname) |
2659 { |
2659 { |
2660 inparam->Reset(); |
2660 inparam->Reset(); |
2661 outparam->Reset(); |
2661 outparam->Reset(); |
2662 |
2662 |
2663 TLiwGenericParam dsNameParam(KContentType, TLiwVariant(_L("CalendarEntry"))); |
2663 TLiwGenericParam dsNameParam(KContentType, TLiwVariant(_L("CalendarEntry"))); |