2 // Open Service Platform
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.
18 * @file FScl_ContactChangeInfoImpl.h
19 * @brief This is the header file for the %_ContactChangeInfoImpl class.
21 * This header file contains the declarations of the %_ContactChangeInfoImpl class.
23 #ifndef _FSCL_INTERNAL_CONTACT_CHANGE_INFO_IMPL_H_
24 #define _FSCL_INTERNAL_CONTACT_CHANGE_INFO_IMPL_H_
26 #include <FBaseObject.h>
27 #include <FSclRecord.h>
28 #include <FSclTypes.h>
30 namespace Tizen { namespace Social
32 class ContactChangeInfo;
35 * @class _ContactChangeInfoImpl
36 * @brief This class provides a contact change information.
39 * The %_ContactChangeInfoImpl class provides a contact change information
42 class _ContactChangeInfoImpl
43 : public Tizen::Base::Object
47 * This is default constructor for this class.
51 _ContactChangeInfoImpl(void);
54 * Copying of objects using this copy constructor is allowed.
58 _ContactChangeInfoImpl(const _ContactChangeInfoImpl& rhs);
61 * This destructor overrides Tizen::Base::Object::~Object().
65 virtual ~_ContactChangeInfoImpl(void);
67 virtual bool Equals(const Tizen::Base::Object& rhs) const;
69 virtual int GetHashCode(void) const;
71 void SetAddressbookId(AddressbookId addressbookId);
73 AddressbookId GetAddressbookId(void) const;
75 void SetContactId(RecordId contactId);
77 RecordId GetContactId(void) const;
79 void SetVersion(int version);
81 int GetVersion(void) const;
83 void SetChangeType(RecordChangeType type);
85 RecordChangeType GetChangeType(void) const;
87 bool IsThumbnailChanged(void) const;
89 void SetThumbnailChangeStatus(bool isChanged);
91 static _ContactChangeInfoImpl* GetInstance(ContactChangeInfo& contactChangeInfo);
93 static const _ContactChangeInfoImpl* GetInstance(const ContactChangeInfo& contactChangeInfo);
96 * Copying of objects using this copy assignment operator is allowed.
100 _ContactChangeInfoImpl& operator =(const _ContactChangeInfoImpl& rhs);
102 bool operator ==(const _ContactChangeInfoImpl& rhs) const;
105 RecordId __contactId;
106 AddressbookId __addressbookId;
108 RecordChangeType __changeType;
109 bool __isThumbnailChanged;
111 }; // _ContactChangeInfoImpl
115 #endif // _FSCL_INTERNAL_CONTACT_CHANGE_INFO_IMPL_H_