summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorhs321.lee <hs321.lee@samsung.com>2013-10-23 20:03:42 +0900
committerhs321.lee <hs321.lee@samsung.com>2013-12-03 17:12:19 +0900
commit256d70d42bf391034b889ea922e62314b423c502 (patch)
treef3698e12b98f46a4ed4970e7a440fe04e584863c /inc
parent95f6b6383fa17b44bcad9df080f058a2adfc713a (diff)
downloadsocial-256d70d42bf391034b889ea922e62314b423c502.tar.gz
social-256d70d42bf391034b889ea922e62314b423c502.tar.bz2
social-256d70d42bf391034b889ea922e62314b423c502.zip
Add the example for all day event
Change-Id: I1b7afce4806de4c1a3beeec893a6c47186f1bab5 Signed-off-by: hs321.lee <hs321.lee@samsung.com>
Diffstat (limited to 'inc')
-rw-r--r--inc/FSclCalEvent.h30
1 files changed, 30 insertions, 0 deletions
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 <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