2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 * @file ContactOrganization.cpp
20 * @author Kisub Song (kisubs.song@samsung.com)
25 #include "ContactOrganization.h"
30 ContactOrganization::ContactOrganization() :
32 m_departmentIsSet(false),
39 ContactOrganization::~ContactOrganization()
43 std::string ContactOrganization::getName() const
48 void ContactOrganization::setName(const std::string &value)
54 void ContactOrganization::unsetName()
60 bool ContactOrganization::getNameIsSet() const
65 std::string ContactOrganization::getDepartment() const
70 void ContactOrganization::setDepartment(const std::string &value)
73 m_departmentIsSet = true;
76 void ContactOrganization::unsetDepartment()
79 m_departmentIsSet = false;
82 bool ContactOrganization::getDepartmentIsSet() const
84 return m_departmentIsSet;
87 std::string ContactOrganization::getTitle() const
92 void ContactOrganization::setTitle(const std::string &value)
98 void ContactOrganization::unsetTitle()
101 m_titleIsSet = false;
104 bool ContactOrganization::getTitleIsSet() const
109 std::string ContactOrganization::getRole() const
114 void ContactOrganization::setRole(const std::string &value)
120 void ContactOrganization::unsetRole()
126 bool ContactOrganization::getRoleIsSet() const
131 std::string ContactOrganization::getLogoURI() const
136 void ContactOrganization::setLogoURI(const std::string &value)
139 m_logoURIIsSet = true;
142 void ContactOrganization::unsetLogoURI()
145 m_logoURIIsSet = false;
148 bool ContactOrganization::getLogoURIIsSet() const
150 return m_logoURIIsSet;
153 void ContactOrganization::clear()
159 m_departmentIsSet = false;
162 m_titleIsSet = false;
168 m_logoURIIsSet = false;
171 m_assistantIsSet = false;
174 m_locationIsSet = false;
177 m_descriptionIsSet = false;
180 m_phoneticNameIsSet = false;
182 m_type = ORGANIZATION_TYPE_WORK;
186 m_labelIsSet = false;
190 ContactOrganizationPtr ContactOrganization::clone() const
192 ContactOrganizationPtr result(new ContactOrganization());
194 result->m_name = m_name;
195 result->m_nameIsSet = m_nameIsSet;
197 result->m_department = m_department;
198 result->m_departmentIsSet = m_departmentIsSet;
200 result->m_title = m_title;
201 result->m_titleIsSet = m_titleIsSet;
203 result->m_role = m_role;
204 result->m_roleIsSet = m_roleIsSet;
206 result->m_logoURI = m_logoURI;
207 result->m_logoURIIsSet = m_logoURIIsSet;
209 result->m_assistant = m_assistant;
210 result->m_assistantIsSet = m_assistantIsSet;
212 result->m_location = m_location;
213 result->m_locationIsSet = m_locationIsSet;
215 result->m_description = m_description;
216 result->m_descriptionIsSet = m_descriptionIsSet;
218 result->m_phoneticName = m_phoneticName;
219 result->m_phoneticNameIsSet = m_phoneticNameIsSet;
221 result->m_type = m_type;
222 result->m_typeIsSet = m_typeIsSet;
225 result->m_label = m_label;
226 result->m_labelIsSet = m_labelIsSet;
231 std::string ContactOrganization::getAssistant() const
236 void ContactOrganization::setAssistant(const std::string &value)
239 m_assistantIsSet = true;
242 void ContactOrganization::unsetAssistant()
245 m_assistantIsSet = false;
248 bool ContactOrganization::getAssistantIsSet() const
250 return m_assistantIsSet;
253 std::string ContactOrganization::getLocation() const
258 void ContactOrganization::setLocation(const std::string &value)
261 m_locationIsSet = true;
264 void ContactOrganization::unsetLocation()
267 m_locationIsSet = false;
270 bool ContactOrganization::getLocationIsSet() const
272 return m_locationIsSet;
275 std::string ContactOrganization::getDescription() const
277 return m_description;
280 void ContactOrganization::setDescription(const std::string &value)
282 m_description = value;
283 m_descriptionIsSet = true;
286 void ContactOrganization::unsetDescription()
289 m_descriptionIsSet = false;
292 bool ContactOrganization::getDescriptionIsSet() const
294 return m_descriptionIsSet;
297 std::string ContactOrganization::getPhoneticName() const
299 return m_phoneticName;
302 void ContactOrganization::setPhoneticName(const std::string &value)
304 m_phoneticName = value;
305 m_phoneticNameIsSet = true;
308 void ContactOrganization::unsetPhoneticName()
311 m_phoneticNameIsSet = false;
314 bool ContactOrganization::getPhoneticNameIsSet() const
316 return m_phoneticNameIsSet;
319 ContactOrganizationType ContactOrganization::getType() const
324 void ContactOrganization::setType(ContactOrganizationType value)
330 void ContactOrganization::unsetType()
332 m_type = ORGANIZATION_TYPE_WORK;
336 bool ContactOrganization::getTypeIsSet() const
341 std::string ContactOrganization::getLabel() const
346 void ContactOrganization::setLabel(const std::string &value)
352 void ContactOrganization::unsetLabel()
355 m_labelIsSet = false;
358 bool ContactOrganization::getLabelIsSet() const