Fix for CompatTC Fail
[framework/osp/social.git] / src / FScl_RelationshipImpl.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_RelationshipImpl.h
18 * @brief        This is the header file for the %_RelationshipImpl class.
19 *
20 * This header file contains the declarations of the %_RelationshipImpl class.
21 */
22 #ifndef _FSCL_INTERNAL_RELATIONSHIP_IMPL_H_
23 #define _FSCL_INTERNAL_RELATIONSHIP_IMPL_H_
24
25 #include <FBaseResult.h>
26 #include <FBaseObject.h>
27 #include <FBaseString.h>
28 #include <FSclTypes.h>
29
30 namespace Tizen { namespace Social
31 {
32
33 class _OSP_EXPORT_ _RelationshipImpl
34         : public Tizen::Base::Object
35 {
36 public:
37         _RelationshipImpl(void);
38
39         _RelationshipImpl(const _RelationshipImpl& rhs);
40
41         virtual ~_RelationshipImpl(void);
42
43         virtual bool Equals(const Tizen::Base::Object& rhs) const;
44
45         virtual int GetHashCode(void) const;
46
47         RelationshipType GetType(void) const;
48
49         Tizen::Base::String GetRelativeName(void) const;
50
51         Tizen::Base::String GetLabel(void) const;
52
53         void SetType(RelationshipType type);
54
55         void SetLabel(const Tizen::Base::String& label);
56
57         void SetRelativeName(const Tizen::Base::String& relativeName);
58
59         _RelationshipImpl& operator =(const _RelationshipImpl& rhs);
60
61         bool operator ==(const _RelationshipImpl& rhs) const;
62
63         bool operator !=(const _RelationshipImpl& rhs) const;
64
65         static const _RelationshipImpl* GetInstance(const Relationship& relationship);
66
67         static _RelationshipImpl* GetInstance(Relationship& relationship);
68
69 private:
70         RelationshipType __type;
71         Tizen::Base::String __label;
72         Tizen::Base::String __name;
73 }; // _RelationshipImpl
74
75 }} // Tizen::Social
76
77 #endif // _FSCL_INTERNAL_RELATIONSHIP_IMPL_H_