Update change log and spec for wrt-plugins-tizen_0.4.49
[framework/web/wrt-plugins-tizen.git] / src / Contact / ContactOrganization.cpp
1 //
2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file        ContactOrganization.cpp
20  * @author      Kisub Song (kisubs.song@samsung.com)
21  * @version     0.1
22  * @brief
23  */
24
25 #include "ContactOrganization.h"
26
27 namespace DeviceAPI {
28 namespace Contact {
29
30 ContactOrganization::ContactOrganization() :
31                 m_nameIsSet(false),
32                 m_departmentIsSet(false),
33                 m_titleIsSet(false),
34                 m_roleIsSet(false),
35                 m_logoURIIsSet(false)
36 {
37 }
38
39 ContactOrganization::~ContactOrganization()
40 {
41 }
42
43 std::string ContactOrganization::getName() const
44 {
45         return m_name;
46 }
47
48 void ContactOrganization::setName(const std::string &value)
49 {
50         m_name = value;
51         m_nameIsSet = true;
52 }
53
54 void ContactOrganization::unsetName()
55 {
56         m_name = "";
57         m_nameIsSet = false;
58 }
59
60 bool ContactOrganization::getNameIsSet() const
61 {
62         return m_nameIsSet;
63 }
64
65 std::string ContactOrganization::getDepartment() const
66 {
67         return m_department;
68 }
69
70 void ContactOrganization::setDepartment(const std::string &value)
71 {
72         m_department = value;
73         m_departmentIsSet = true;
74 }
75
76 void ContactOrganization::unsetDepartment()
77 {
78         m_department = "";
79         m_departmentIsSet = false;
80 }
81
82 bool ContactOrganization::getDepartmentIsSet() const
83 {
84         return m_departmentIsSet;
85 }
86
87 std::string ContactOrganization::getTitle() const
88 {
89         return m_title;
90 }
91
92 void ContactOrganization::setTitle(const std::string &value)
93 {
94         m_title = value;
95         m_titleIsSet = true;
96 }
97
98 void ContactOrganization::unsetTitle()
99 {
100         m_title = "";
101         m_titleIsSet = false;
102 }
103
104 bool ContactOrganization::getTitleIsSet() const
105 {
106         return m_titleIsSet;
107 }
108
109 std::string ContactOrganization::getRole() const
110 {
111         return m_role;
112 }
113
114 void ContactOrganization::setRole(const std::string &value)
115 {
116         m_role = value;
117         m_roleIsSet = true;
118 }
119
120 void ContactOrganization::unsetRole()
121 {
122         m_role = "";
123         m_roleIsSet = false;
124 }
125
126 bool ContactOrganization::getRoleIsSet() const
127 {
128         return m_roleIsSet;
129 }
130
131 std::string ContactOrganization::getLogoURI() const
132 {
133         return m_logoURI;
134 }
135
136 void ContactOrganization::setLogoURI(const std::string &value)
137 {
138         m_logoURI = value;
139         m_logoURIIsSet = true;
140 }
141
142 void ContactOrganization::unsetLogoURI()
143 {
144         m_logoURI = "";
145         m_logoURIIsSet = false;
146 }
147
148 bool ContactOrganization::getLogoURIIsSet() const
149 {
150         return m_logoURIIsSet;
151 }
152
153 void ContactOrganization::clear()
154 {
155         m_name = "";
156         m_nameIsSet = false;
157
158         m_department = "";
159         m_departmentIsSet = false;
160
161         m_title = "";
162         m_titleIsSet = false;
163
164         m_role = "";
165         m_roleIsSet = false;
166
167         m_logoURI = "";
168         m_logoURIIsSet = false;
169
170         m_assistant = "";
171         m_assistantIsSet = false;
172
173         m_location = "";
174         m_locationIsSet = false;
175
176         m_description = "";
177         m_descriptionIsSet = false;
178
179         m_phoneticName = "";
180         m_phoneticNameIsSet = false;
181
182         m_type = ORGANIZATION_TYPE_WORK;
183         m_typeIsSet = false;
184
185         m_label = "";
186         m_labelIsSet = false;
187
188 }
189
190 ContactOrganizationPtr ContactOrganization::clone() const
191 {
192         ContactOrganizationPtr result(new ContactOrganization());
193
194         result->m_name = m_name;
195         result->m_nameIsSet = m_nameIsSet;
196
197         result->m_department = m_department;
198         result->m_departmentIsSet = m_departmentIsSet;
199
200         result->m_title = m_title;
201         result->m_titleIsSet = m_titleIsSet;
202
203         result->m_role = m_role;
204         result->m_roleIsSet = m_roleIsSet;
205
206         result->m_logoURI = m_logoURI;
207         result->m_logoURIIsSet = m_logoURIIsSet;
208
209         result->m_assistant = m_assistant;
210         result->m_assistantIsSet = m_assistantIsSet;
211
212         result->m_location = m_location;
213         result->m_locationIsSet = m_locationIsSet;
214
215         result->m_description = m_description;
216         result->m_descriptionIsSet = m_descriptionIsSet;
217
218         result->m_phoneticName = m_phoneticName;
219         result->m_phoneticNameIsSet = m_phoneticNameIsSet;
220
221         result->m_type = m_type;
222         result->m_typeIsSet = m_typeIsSet;
223
224
225         result->m_label = m_label;
226         result->m_labelIsSet = m_labelIsSet;
227
228         return result;
229 }
230
231 std::string ContactOrganization::getAssistant() const
232 {
233         return m_assistant;
234 }
235
236 void ContactOrganization::setAssistant(const std::string &value)
237 {
238         m_assistant = value;
239         m_assistantIsSet = true;
240 }
241
242 void ContactOrganization::unsetAssistant()
243 {
244         m_assistant = "";
245         m_assistantIsSet = false;
246 }
247
248 bool ContactOrganization::getAssistantIsSet() const
249 {
250         return m_assistantIsSet;
251 }
252
253 std::string ContactOrganization::getLocation() const
254 {
255         return m_location;
256 }
257
258 void ContactOrganization::setLocation(const std::string &value)
259 {
260         m_location = value;
261         m_locationIsSet = true;
262 }
263
264 void ContactOrganization::unsetLocation()
265 {
266         m_location = "";
267         m_locationIsSet = false;
268 }
269
270 bool ContactOrganization::getLocationIsSet() const
271 {
272         return m_locationIsSet;
273 }
274
275 std::string ContactOrganization::getDescription() const
276 {
277         return m_description;
278 }
279
280 void ContactOrganization::setDescription(const std::string &value)
281 {
282         m_description = value;
283         m_descriptionIsSet = true;
284 }
285
286 void ContactOrganization::unsetDescription()
287 {
288         m_description = "";
289         m_descriptionIsSet = false;
290 }
291
292 bool ContactOrganization::getDescriptionIsSet() const
293 {
294         return m_descriptionIsSet;
295 }
296
297 std::string ContactOrganization::getPhoneticName() const
298 {
299         return m_phoneticName;
300 }
301
302 void ContactOrganization::setPhoneticName(const std::string &value)
303 {
304         m_phoneticName = value;
305         m_phoneticNameIsSet = true;
306 }
307
308 void ContactOrganization::unsetPhoneticName()
309 {
310         m_phoneticName = "";
311         m_phoneticNameIsSet = false;
312 }
313
314 bool ContactOrganization::getPhoneticNameIsSet() const
315 {
316         return m_phoneticNameIsSet;
317 }
318
319 ContactOrganizationType ContactOrganization::getType() const
320 {
321         return m_type;
322 }
323
324 void ContactOrganization::setType(ContactOrganizationType value)
325 {
326         m_type = value;
327         m_typeIsSet = true;
328 }
329
330 void ContactOrganization::unsetType()
331 {
332         m_type = ORGANIZATION_TYPE_WORK;
333         m_typeIsSet = false;
334 }
335
336 bool ContactOrganization::getTypeIsSet() const
337 {
338         return m_typeIsSet;
339 }
340
341 std::string ContactOrganization::getLabel() const
342 {
343         return m_label;
344 }
345
346 void ContactOrganization::setLabel(const std::string &value)
347 {
348         m_label = value;
349         m_labelIsSet = true;
350 }
351
352 void ContactOrganization::unsetLabel()
353 {
354         m_label = "";
355         m_labelIsSet = false;
356 }
357
358 bool ContactOrganization::getLabelIsSet() const
359 {
360         return m_labelIsSet;
361 }
362
363 } // Contact
364 } // DeviceAPI