Merge "Fixed exception handling codes" into tizen_2.1
[framework/osp/social.git] / src / FScl_CategoryChangeInfoImpl.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17 /**
18  * @file                FScl_CategoryChangeInfoImpl.h
19  * @brief               This is the header file for the %_CategoryChangeInfoImpl class.
20  *
21  * This header file contains the declarations of the %_CategoryChangeInfoImpl class.
22  */
23 #ifndef _FSCL_INTERNAL_CATEGORY_CHANGE_INFO_IMPL_H_
24 #define _FSCL_INTERNAL_CATEGORY_CHANGE_INFO_IMPL_H_
25
26 #include <FBaseObject.h>
27 #include <FSclRecord.h>
28 #include <FSclTypes.h>
29
30 namespace Tizen { namespace Social
31 {
32 class CategoryChangeInfo;
33
34 /**
35  * @class       _CategoryChangeInfoImpl
36  * @brief       This class provides a category change information.
37  * @since       2.0
38  *
39  * The %_CategoryChangeInfoImpl class provides a category change information
40  *
41  */
42 class _CategoryChangeInfoImpl
43         : public Tizen::Base::Object
44 {
45 public:
46         /**
47          * This is default constructor for this class.
48          *
49          * @since       2.0
50          */
51         _CategoryChangeInfoImpl(void);
52
53         /**
54          * Copying of objects using this copy constructor is allowed.
55          *
56          * @since       2.0
57          */
58         _CategoryChangeInfoImpl(const _CategoryChangeInfoImpl& rhs);
59
60         /**
61          * This destructor overrides Tizen::Base::Object::~Object().
62          *
63          * @since       2.0
64          */
65         virtual ~_CategoryChangeInfoImpl(void);
66
67         virtual bool Equals(const Tizen::Base::Object& rhs) const;
68
69         virtual int GetHashCode(void) const;
70
71         void SetAddressbookId(AddressbookId addressbookId);
72
73         AddressbookId GetAddressbookId(void) const;
74
75         void SetCategoryId(RecordId categoryId);
76
77         RecordId GetCategoryId(void) const;
78
79         void SetVersion(int version);
80
81         int GetVersion(void) const;
82
83         void SetChangeType(RecordChangeType type);
84
85         RecordChangeType GetChangeType(void) const;
86
87         static _CategoryChangeInfoImpl* GetInstance(CategoryChangeInfo& categoryChangeInfo);
88
89         static const _CategoryChangeInfoImpl* GetInstance(const CategoryChangeInfo& categoryChangeInfo);
90
91         /**
92          * Copying of objects using this copy assignment operator is allowed.
93          *
94          * @since       2.0
95          */
96         _CategoryChangeInfoImpl& operator =(const _CategoryChangeInfoImpl& rhs);
97
98         bool operator ==(const _CategoryChangeInfoImpl& rhs) const;
99
100 private:
101         RecordId __categoryId;
102         AddressbookId __addressbookId;
103         int __version;
104         RecordChangeType __changeType;
105
106 };      // _CategoryChangeInfoImpl
107
108 }}      // Tizen::Social
109
110 #endif // _FSCL_INTERNAL_CATEGORY_CHANGE_INFO_IMPL_H_