Git Init
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Contact / ContactAnniversary.cpp
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 /**
18  * @file        ContactAnniversary.cpp
19  * @author      Kisub Song (kisubs.song@samsung.com)
20  * @version     0.1
21  * @brief
22  */
23
24 #include "ContactAnniversary.h"
25
26 namespace TizenApis {
27 namespace Api {
28 namespace Contact {
29
30 ContactAnniversary::ContactAnniversary() :
31                 m_dateIsSet(false),
32                 m_labelIsSet(false)
33 {
34 }
35
36 ContactAnniversary::~ContactAnniversary()
37 {
38 }
39
40 std::tm ContactAnniversary::getDate() const
41 {
42         return m_date;
43 }
44
45 void ContactAnniversary::setDate(const std::tm &value)
46 {
47         m_date = value;
48         m_dateIsSet = true;
49 }
50
51 bool ContactAnniversary::getDateIsSet() const
52 {
53         return m_dateIsSet;
54 }
55
56 std::string ContactAnniversary::getLabel() const
57 {
58         return m_label;
59 }
60
61 void ContactAnniversary::setLabel(const std::string &value)
62 {
63         m_label = value;
64         m_labelIsSet = true;
65 }
66
67 bool ContactAnniversary::getLabelIsSet() const
68 {
69         return m_labelIsSet;
70 }
71
72 ContactAnniversaryPtr ContactAnniversary::clone() const
73 {
74         return ContactAnniversaryPtr(new ContactAnniversary(*this));
75 }
76
77 } // Contact
78 } // Api
79 } // TizenApis