2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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.
17 * @file FScl_ContactChangeInfoImpl.h
18 * @brief This is the header file for the %_ContactChangeInfoImpl class.
20 * This header file contains the declarations of the %_ContactChangeInfoImpl class.
22 #ifndef _FSCL_INTERNAL_CONTACT_CHANGE_INFO_IMPL_H_
23 #define _FSCL_INTERNAL_CONTACT_CHANGE_INFO_IMPL_H_
25 #include <FBaseObject.h>
26 #include <FSclRecord.h>
27 #include <FSclTypes.h>
29 namespace Tizen { namespace Social
31 class ContactChangeInfo;
34 * @class _ContactChangeInfoImpl
35 * @brief This class provides a contact change information.
38 * The %_ContactChangeInfoImpl class provides a contact change information
41 class _ContactChangeInfoImpl
42 : public Tizen::Base::Object
46 * This is default constructor for this class.
50 _ContactChangeInfoImpl(void);
53 * Copying of objects using this copy constructor is allowed.
57 _ContactChangeInfoImpl(const _ContactChangeInfoImpl& rhs);
60 * This destructor overrides Tizen::Base::Object::~Object().
64 virtual ~_ContactChangeInfoImpl(void);
66 virtual bool Equals(const Tizen::Base::Object& rhs) const;
68 virtual int GetHashCode(void) const;
70 void SetAddressbookId(AddressbookId addressbookId);
72 AddressbookId GetAddressbookId(void) const;
74 void SetContactId(RecordId contactId);
76 RecordId GetContactId(void) const;
78 void SetVersion(int version);
80 int GetVersion(void) const;
82 void SetChangeType(RecordChangeType type);
84 RecordChangeType GetChangeType(void) const;
86 bool IsThumbnailChanged(void) const;
88 void SetThumbnailChangeStatus(bool isChanged);
90 static _ContactChangeInfoImpl* GetInstance(ContactChangeInfo& contactChangeInfo);
92 static const _ContactChangeInfoImpl* GetInstance(const ContactChangeInfo& contactChangeInfo);
95 * Copying of objects using this copy assignment operator is allowed.
99 _ContactChangeInfoImpl& operator =(const _ContactChangeInfoImpl& rhs);
101 bool operator ==(const _ContactChangeInfoImpl& rhs) const;
104 RecordId __contactId;
105 AddressbookId __addressbookId;
107 RecordChangeType __changeType;
108 bool __isThumbnailChanged;
110 }; // _ContactChangeInfoImpl
114 #endif // _FSCL_INTERNAL_CONTACT_CHANGE_INFO_IMPL_H_