Update change log and spec for wrt-plugins-tizen_0.2.84
[framework/web/wrt-plugins-tizen.git] / src / platform / API / Calendar / CalendarEvent.h
index caf7f49..20af461 100755 (executable)
@@ -23,6 +23,7 @@
 #include <vector>
 #include <dpl/shared_ptr.h>
 
+#include "EventAlarm.h"
 #include "EventAttendee.h"
 #include "EventRecurrenceRule.h"
 
@@ -36,9 +37,6 @@ namespace Calendar {
 #define UNDEFINED_GEO 0
 #define UNDEFINED_ID "0"
 
-typedef std::vector<std::string> CategoryList;
-typedef DPL::SharedPtr<CategoryList> CategoryListPtr;
-
 typedef std::vector<std::string> AttributeList;
 typedef DPL::SharedPtr<AttributeList> AttributeListPtr;
 
@@ -59,14 +57,6 @@ class CalendarEvent
 
     typedef enum
     {
-        NO_ALARM,
-        SILENT_ALARM,
-        SOUND_ALARM,
-        UNDEFINED_ALARM_TYPE
-    } EventAlarmType;
-
-    typedef enum
-    {
         PUBLIC_VISIBILITY,
         PRIVATE_VISIBILITY,
         CONFIDENTIAL_VISIBILITY,
@@ -141,17 +131,11 @@ class CalendarEvent
     EventStatus getStatus() const;
     void setStatus(EventStatus value);
 
-    std::vector<long> getAlarmsTick() const;
-    void setAlarmsTick(std::vector<long> &value);
-
-    std::vector<EventAlarmType> getAlarmsType() const;
-    void setAlarmsType(std::vector<EventAlarmType> &value);
-
-    std::vector<std::string> getAlarmsDescription() const;
-    void setAlarmsDescription(std::vector<std::string> &value);
+    EventAlarmListPtr getAlarms() const;
+    void setAlarms(const EventAlarmListPtr value);
 
-    CategoryListPtr getCategories() const;
-    void setCategories(const CategoryListPtr &value);
+    StringArrayPtr getCategories() const;
+    void setCategories(const StringArrayPtr value);
 
     void display() const;
     bool validate() const;
@@ -178,7 +162,7 @@ class CalendarEvent
     void setRecurrenceId(long long int value);
 
     EventAttendeeListPtr getAttendees() const;
-    void setAttendees(const EventAttendeeListPtr &value);
+    void setAttendees(const EventAttendeeListPtr value);
 
     bool getIsDetached() const;
     void setIsDetached(bool value);
@@ -221,10 +205,8 @@ class CalendarEvent
     std::string m_location;
     EventRecurrenceRulePtr m_recurrence;
     EventStatus m_status;
-    std::vector<long> m_alarmsTick;
-    std::vector<EventAlarmType> m_alarmsType;
-    std::vector<std::string> m_alarmsDescription;
-    CategoryListPtr m_categories;
+    EventAlarmListPtr m_alarms;
+    StringArrayPtr m_categories;
     bool m_isAllDay;
     std::string m_organizer;
     long long int m_lastModifiedDate;