Add the example for all day event 07/13307/1
authorhs321.lee <hs321.lee@samsung.com>
Wed, 23 Oct 2013 11:03:42 +0000 (20:03 +0900)
committerhs321.lee <hs321.lee@samsung.com>
Tue, 3 Dec 2013 08:12:19 +0000 (17:12 +0900)
Change-Id: I1b7afce4806de4c1a3beeec893a6c47186f1bab5
Signed-off-by: hs321.lee <hs321.lee@samsung.com>
inc/FSclCalEvent.h

index d503253..e436b0d 100644 (file)
@@ -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 <FBase.h>
+       #include <FSocial.h>
+
+       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