Beta merge 2
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Calendar / EventRecurrenceRule.cpp
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 #include "EventRecurrenceRule.h"
19 #include <Commons/Exception.h>
20 #include <dpl/log/log.h>
21
22 /**
23  * @file        EventRecurrenceRule.cpp
24  *
25  * @version     0.1
26  */
27
28 namespace TizenApis {
29 namespace Api {
30 namespace Calendar {
31
32 EventRecurrenceRule::EventRecurrenceRule() :
33     m_frequency(NO_RECURRENCE),
34     m_occurrenceCount(-1),
35     m_setPosition(false)
36 {
37 }
38
39 EventRecurrenceRule::~EventRecurrenceRule()
40 {
41 }
42
43 EventRecurrenceRule::EventRecurrence EventRecurrenceRule::getFrequency() const
44 {
45     return m_frequency;
46 }
47
48 void EventRecurrenceRule::setFrequency(const EventRecurrenceRule::EventRecurrence &value)
49 {
50     m_frequency = value;
51 }
52
53 int EventRecurrenceRule::getInterval() const
54 {
55     return m_interval;
56 }
57
58 void EventRecurrenceRule::setInterval(const int &value)
59 {
60     m_interval = value;
61 }
62
63 time_t EventRecurrenceRule::getEndDate() const
64 {
65     return m_endDate;
66 }
67
68 void EventRecurrenceRule::setEndDate(time_t value)
69 {
70     m_endDate = value;
71 }
72
73 long EventRecurrenceRule::getOccurrenceCount() const
74 {
75     return m_occurrenceCount;
76 }
77 void EventRecurrenceRule::setOccurrenceCount(long value)
78 {
79     m_occurrenceCount = value;
80 }
81
82 std::vector<int> EventRecurrenceRule::getDaysOfTheMonth() const
83 {
84     return m_daysOfTheMonth;
85 }
86
87 void EventRecurrenceRule::setDaysOfTheMonth(std::vector<int> value)
88 {
89     m_daysOfTheMonth = value;
90 }
91
92 std::vector<std::string> EventRecurrenceRule::getDaysOfTheWeek() const
93 {
94     return m_daysOfTheWeek;
95 }
96
97 void EventRecurrenceRule::setDaysOfTheWeek(std::vector<std::string> value)
98 {
99     m_daysOfTheWeek = value;
100 }
101
102 std::vector<int> EventRecurrenceRule::getDaysOfTheYear() const
103 {
104     return m_daysOfTheYear;
105 }
106
107 void EventRecurrenceRule::setDaysOfTheYear(std::vector<int> value)
108 {
109     m_daysOfTheYear = value;
110 }
111
112 std::vector<int> EventRecurrenceRule::getWeeksOfTheYear() const
113 {
114     return m_weeksOfTheYear;
115 }
116
117 void EventRecurrenceRule::setWeeksOfTheYear(std::vector<int> value)
118 {
119     m_weeksOfTheYear = value;
120 }
121
122 bool EventRecurrenceRule::getSetPosition() const
123 {
124     return m_setPosition;
125 }
126
127 void EventRecurrenceRule::setSetPosition(bool value)
128 {
129     m_setPosition = value;
130 }
131
132 std::vector<time_t> EventRecurrenceRule::getExceptions() const
133 {
134     return m_exceptions;
135 }
136
137 void EventRecurrenceRule::setExceptions(std::vector<time_t> value)
138 {
139     m_exceptions = value;
140 }
141
142 std::string EventRecurrenceRule::getTimeZone() const
143 {
144     return m_timeZone;
145 }
146
147 void EventRecurrenceRule::setTimeZone(std::string value)
148 {
149     m_timeZone = value;
150 }
151
152 }
153 }
154 }