Git Init
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Calendar / EventAlarm.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 _EVENT_ALARM_H_
19 #define _EVENT_ALARM_H_
20
21 #include <vector>
22 #include <ctime>
23 #include <string>
24 #include <dpl/shared_ptr.h>
25
26 namespace TizenApis {
27 namespace Api {
28 namespace Calendar {
29
30 class EventAlarm
31 {
32   public:
33     EventAlarm();
34     virtual ~EventAlarm();
35
36     std::time_t getAbsoluteDate() const;
37     void setAbsoluteDate(const std::time_t &value);
38
39     std::string getTimeZone() const;
40     void setTimeZone(const std::string &value);
41
42     long getMinutes() const;
43     void setMinutes(const long &value);
44
45     long getDays() const;
46     void setDays(const long &value);
47
48     std::vector<int> getMethods() const;
49     void setMethods(const std::vector<int> &value);
50
51   protected:
52     std::time_t m_absoluteDate;
53     std::string m_timeZone;
54     long m_minutes;
55     long m_days;
56     std::vector<int> m_methods;
57 };
58
59 typedef DPL::SharedPtr<EventAlarm> EventAlarmPtr;
60 typedef std::vector<EventAlarmPtr> EventAlarmList;
61 typedef DPL::SharedPtr<EventAlarmList> EventAlarmListPtr;
62
63 }
64 }
65 }
66
67 #endif /* _EVENT_ALARM_H_ */