Fix for CompatTC Fail
[framework/osp/social.git] / src / FScl_ImAddressImpl.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_ImAddressImpl.h
18 * @brief        This is the header file for the %_ImAddressImpl class.
19 *
20 * This header file contains the declarations of the %_ImAddressImpl class.
21 */
22 #ifndef _FSCL_INTERNAL_IM_ADDRESS_IMPL_H_
23 #define _FSCL_INTERNAL_IM_ADDRESS_IMPL_H_
24
25 #include <FBaseResult.h>
26 #include <FBaseObject.h>
27 #include <FBaseString.h>
28
29 namespace Tizen { namespace Social
30 {
31
32 extern const wchar_t IM_ADDRESS_IRC[];
33 extern const wchar_t IM_ADDRESS_FACEBOOK[];
34
35 class ImAddress;
36
37 class _OSP_EXPORT_ _ImAddressImpl
38         : public Tizen::Base::Object
39 {
40 public:
41         _ImAddressImpl(void);
42
43         _ImAddressImpl(const Tizen::Base::String& serviceProviderName, const Tizen::Base::String& imAddress);
44
45         _ImAddressImpl(const _ImAddressImpl& rhs);
46
47         virtual ~_ImAddressImpl(void);
48
49         virtual bool Equals(const Tizen::Base::Object& rhs) const;
50
51         virtual int GetHashCode(void) const;
52
53         Tizen::Base::String GetServiceProviderName(void) const;
54
55         Tizen::Base::String GetImAddress(void) const;
56
57         void SetServiceProviderName(const Tizen::Base::String& serviceProviderName);
58
59         result SetImAddress(const Tizen::Base::String& imAddress);
60
61         _ImAddressImpl& operator =(const _ImAddressImpl& rhs);
62
63         bool operator ==(const _ImAddressImpl& rhs) const;
64
65         bool operator !=(const _ImAddressImpl& rhs) const;
66
67         static const _ImAddressImpl* GetInstance(const ImAddress& imAddress);
68
69         static _ImAddressImpl* GetInstance(ImAddress& imAddress);
70
71 private:
72         Tizen::Base::String __serviceProviderName;
73         Tizen::Base::String __imAddress;
74 }; // _ImAddressImpl
75
76 }} // Tizen::Social
77
78 #endif // _FSCL_INTERNAL_IM_ADDRESS_IMPL_H_