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 ContactOrganizationPtr ContactOrganization::clone() const
173 ContactOrganizationPtr result(new ContactOrganization());
175 result->m_name = m_name;
176 result->m_nameIsSet = m_nameIsSet;
178 result->m_department = m_department;
179 result->m_departmentIsSet = m_departmentIsSet;
181 result->m_title = m_title;
182 result->m_titleIsSet = m_titleIsSet;
184 result->m_role = m_role;
185 result->m_roleIsSet = m_roleIsSet;
187 result->m_logoURI = m_logoURI;
188 result->m_logoURIIsSet = m_logoURIIsSet;