From 256d70d42bf391034b889ea922e62314b423c502 Mon Sep 17 00:00:00 2001 From: "hs321.lee" Date: Wed, 23 Oct 2013 20:03:42 +0900 Subject: [PATCH] Add the example for all day event Change-Id: I1b7afce4806de4c1a3beeec893a6c47186f1bab5 Signed-off-by: hs321.lee --- inc/FSclCalEvent.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/inc/FSclCalEvent.h b/inc/FSclCalEvent.h index d503253..e436b0d 100644 --- a/inc/FSclCalEvent.h +++ b/inc/FSclCalEvent.h @@ -99,6 +99,36 @@ namespace Tizen { namespace Social * * @endcode * + * The following example demonstrates how to use the %CalEvent class to add calendarbook all day event. + * @code + * + #include + #include + + using namespace Tizen::Base; + using namespace Tizen::Social; + + void + CreateAlldayEvent(void) + { + + DateTime startWallTime; + DateTime endWallTime; + + // Sets the start/end time for an all day event on 2013/7/17 + // The end time for all day event must be later than the start date(RFC 5545) + startWallTime.SetValue(2013, 7, 17, 0, 0, 0); + endWallTime.SetValue(2013, 7, 18, 0, 0, 0); + + // Creates an all day event + CalEvent event; + event.SetSubject(L"All day event"); + + event.SetAllDayEvent(true); + event.SetStartAndEndTime(startWallTime, endWallTime); + } + * + * @endcode */ class _OSP_EXPORT_ CalEvent : public Record -- 2.7.4