*
* @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