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_RelationshipImpl.h
19 * @brief This is the header file for the %_RelationshipImpl class.
21 * This header file contains the declarations of the %_RelationshipImpl class.
23 #ifndef _FSCL_INTERNAL_RELATIONSHIP_IMPL_H_
24 #define _FSCL_INTERNAL_RELATIONSHIP_IMPL_H_
26 #include <FBaseResult.h>
27 #include <FBaseObject.h>
28 #include <FBaseString.h>
29 #include <FSclTypes.h>
31 namespace Tizen { namespace Social
34 class _OSP_EXPORT_ _RelationshipImpl
35 : public Tizen::Base::Object
38 _RelationshipImpl(void);
40 _RelationshipImpl(const _RelationshipImpl& rhs);
42 virtual ~_RelationshipImpl(void);
44 virtual bool Equals(const Tizen::Base::Object& rhs) const;
46 virtual int GetHashCode(void) const;
48 RelationshipType GetType(void) const;
50 Tizen::Base::String GetRelativeName(void) const;
52 Tizen::Base::String GetLabel(void) const;
54 void SetType(RelationshipType type);
56 void SetLabel(const Tizen::Base::String& label);
58 void SetRelativeName(const Tizen::Base::String& relativeName);
60 _RelationshipImpl& operator =(const _RelationshipImpl& rhs);
62 bool operator ==(const _RelationshipImpl& rhs) const;
64 bool operator !=(const _RelationshipImpl& rhs) const;
66 static const _RelationshipImpl* GetInstance(const Relationship& relationship);
68 static _RelationshipImpl* GetInstance(Relationship& relationship);
71 RelationshipType __type;
72 Tizen::Base::String __label;
73 Tizen::Base::String __name;
74 }; // _RelationshipImpl
78 #endif // _FSCL_INTERNAL_RELATIONSHIP_IMPL_H_