#include <vector>
#include <dpl/shared_ptr.h>
+#include "EventAlarm.h"
#include "EventAttendee.h"
#include "EventRecurrenceRule.h"
#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;
typedef enum
{
- NO_ALARM,
- SILENT_ALARM,
- SOUND_ALARM,
- UNDEFINED_ALARM_TYPE
- } EventAlarmType;
-
- typedef enum
- {
PUBLIC_VISIBILITY,
PRIVATE_VISIBILITY,
CONFIDENTIAL_VISIBILITY,
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;
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);
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;