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_RelationshipImpl.h
18 * @brief This is the header file for the %_RelationshipImpl class.
20 * This header file contains the declarations of the %_RelationshipImpl class.
22 #ifndef _FSCL_INTERNAL_RELATIONSHIP_IMPL_H_
23 #define _FSCL_INTERNAL_RELATIONSHIP_IMPL_H_
25 #include <FBaseResult.h>
26 #include <FBaseObject.h>
27 #include <FBaseString.h>
28 #include <FSclTypes.h>
30 namespace Tizen { namespace Social
33 class _OSP_EXPORT_ _RelationshipImpl
34 : public Tizen::Base::Object
37 _RelationshipImpl(void);
39 _RelationshipImpl(const _RelationshipImpl& rhs);
41 virtual ~_RelationshipImpl(void);
43 virtual bool Equals(const Tizen::Base::Object& rhs) const;
45 virtual int GetHashCode(void) const;
47 RelationshipType GetType(void) const;
49 Tizen::Base::String GetRelativeName(void) const;
51 Tizen::Base::String GetLabel(void) const;
53 void SetType(RelationshipType type);
55 void SetLabel(const Tizen::Base::String& label);
57 void SetRelativeName(const Tizen::Base::String& relativeName);
59 _RelationshipImpl& operator =(const _RelationshipImpl& rhs);
61 bool operator ==(const _RelationshipImpl& rhs) const;
63 bool operator !=(const _RelationshipImpl& rhs) const;
65 static const _RelationshipImpl* GetInstance(const Relationship& relationship);
67 static _RelationshipImpl* GetInstance(Relationship& relationship);
70 RelationshipType __type;
71 Tizen::Base::String __label;
72 Tizen::Base::String __name;
73 }; // _RelationshipImpl
77 #endif // _FSCL_INTERNAL_RELATIONSHIP_IMPL_H_