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 ContactWebSite.cpp
20 * @author Kisub Song (kisubs.song@samsung.com)
25 #include "ContactWebSite.h"
30 ContactWebSite::ContactWebSite() :
36 ContactWebSite::~ContactWebSite()
40 std::string ContactWebSite::getUrl() const
45 void ContactWebSite::setUrl(const std::string &value)
51 void ContactWebSite::unsetUrl()
57 bool ContactWebSite::getUrlIsSet() const
62 ContactWebSiteType ContactWebSite::getType() const
67 void ContactWebSite::setType(const ContactWebSiteType value)
73 void ContactWebSite::unsetType()
75 m_type = WEBSITE_TYPE_HOMEPAGE;
79 bool ContactWebSite::getTypeIsSet() const
84 void ContactWebSite::clear()
89 m_type = WEBSITE_TYPE_HOMEPAGE;
96 ContactWebSitePtr ContactWebSite::clone() const
98 ContactWebSitePtr result(new ContactWebSite());
100 result->m_url = m_url;
101 result->m_urlIsSet = m_urlIsSet;
103 result->m_type = m_type;
104 result->m_typeIsSet = m_typeIsSet;
106 result->m_label = m_label;
107 result->m_labelIsSet = m_labelIsSet;
112 std::string ContactWebSite::getLabel() const
117 void ContactWebSite::setLabel(const std::string &value)
123 bool ContactWebSite::getLabelIsSet() const