Git Init
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Calendar / EventId.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17
18 #ifndef _ABSTRACT_LAYER_EVENT_ID_H_
19 #define _ABSTRACT_LAYER_EVENT_ID_H_
20
21 #include <string>
22 #include <ctime>
23 #include <vector>
24 #include <dpl/shared_ptr.h>
25
26 #include "CalendarEvent.h"
27
28 namespace TizenApis {
29 namespace Api {
30 namespace Calendar {
31
32 class EventId
33 {
34   public:
35
36     EventId();
37     virtual ~EventId();
38
39     std::string getUId() const;
40     void setUId(const std::string &value);
41
42     std::time_t getRecurrenceId() const;
43     void setRecurrenceId(const std::time_t &value);
44
45     std::string getTimeZone() const;
46     void setTimeZone(const std::string &value);
47     
48     CalendarEvent::CalendarType getCalendarType() const;
49     void setCalendarType(CalendarEvent::CalendarType type);
50
51   protected:
52     std::string m_uid;
53     std::time_t m_recurrenceId;
54     std::string m_timeZone;
55     CalendarEvent::CalendarType m_calendarType;
56 };
57
58 typedef DPL::SharedPtr<EventId> EventIdPtr;
59 typedef std::vector<EventIdPtr> EventIdList;
60 typedef DPL::SharedPtr<EventIdList> EventIdListPtr;
61
62 }
63 }
64 }
65
66 #endif /* _ABSTRACT_LAYER_EVENT_ID_H_ */