2 // Tizen Web Device API
3 // Copyright (c) 2013 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 ContactAnniversary.h
22 #ifndef _TIZEN_CONTACT_CONTACT_ANNIVERSARY_H_
23 #define _TIZEN_CONTACT_CONTACT_ANNIVERSARY_H_
34 class ContactAnniversary;
35 typedef std::shared_ptr<ContactAnniversary> ContactAnniversaryPtr;
36 typedef std::vector<ContactAnniversaryPtr> ContactAnniversaryPtrVector;
38 /* This object represents an anniversary data of a contact */
39 class ContactAnniversary {
42 virtual ~ContactAnniversary();
45 void setDate(const std::tm& value);
46 std::string getLabel();
47 void setLabel(const std::string &value);
50 bool importFromContactsRecord(contacts_record_h contacts_record,
52 void exportToContactsRecord(contacts_record_h contacts_record);
63 #endif // _TIZEN_CONTACT_CONTACT_ANNIVERSARY_H_