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