2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 * @author Kisub Song (kisubs.song@samsung.com)
33 m_readOnlyIsSet(false),
34 m_lastUpdatedIsSet(false)
38 Contact::Contact(const ContactProperties &contactProperties) :
39 ContactProperties(contactProperties),
42 m_readOnlyIsSet(false),
43 m_lastUpdatedIsSet(false)
51 std::string Contact::getId() const
56 void Contact::setId(const std::string value)
62 bool Contact::getIdIsSet() const
67 void Contact::setId(const int value)
69 std::stringstream oss;
75 bool Contact::getReadOnly() const
80 void Contact::setReadOnly(const bool &value)
83 m_readOnlyIsSet = true;
86 bool Contact::getReadOnlyIsSet() const
88 return m_readOnlyIsSet;
91 std::tm Contact::getLastUpdated() const
96 void Contact::setLastUpdated(const std::tm &value)
98 m_lastUpdated = value;
99 m_lastUpdatedIsSet = true;
102 bool Contact::getLastUpdatedIsSet() const
104 return m_lastUpdatedIsSet;
107 void Contact::clear()
111 ContactProperties::clear();
115 m_readOnlyIsSet = false;
118 ContactPtr Contact::clone()
122 //use defaul copy constructor
123 ContactPtr result(new Contact(*this));