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_ImAddressImpl.h
18 * @brief This is the header file for the %_ImAddressImpl class.
20 * This header file contains the declarations of the %_ImAddressImpl class.
22 #ifndef _FSCL_INTERNAL_IM_ADDRESS_IMPL_H_
23 #define _FSCL_INTERNAL_IM_ADDRESS_IMPL_H_
25 #include <FBaseResult.h>
26 #include <FBaseObject.h>
27 #include <FBaseString.h>
29 namespace Tizen { namespace Social
32 extern const wchar_t IM_ADDRESS_IRC[];
33 extern const wchar_t IM_ADDRESS_FACEBOOK[];
37 class _OSP_EXPORT_ _ImAddressImpl
38 : public Tizen::Base::Object
43 _ImAddressImpl(const Tizen::Base::String& serviceProviderName, const Tizen::Base::String& imAddress);
45 _ImAddressImpl(const _ImAddressImpl& rhs);
47 virtual ~_ImAddressImpl(void);
49 virtual bool Equals(const Tizen::Base::Object& rhs) const;
51 virtual int GetHashCode(void) const;
53 Tizen::Base::String GetServiceProviderName(void) const;
55 Tizen::Base::String GetImAddress(void) const;
57 void SetServiceProviderName(const Tizen::Base::String& serviceProviderName);
59 result SetImAddress(const Tizen::Base::String& imAddress);
61 _ImAddressImpl& operator =(const _ImAddressImpl& rhs);
63 bool operator ==(const _ImAddressImpl& rhs) const;
65 bool operator !=(const _ImAddressImpl& rhs) const;
67 static const _ImAddressImpl* GetInstance(const ImAddress& imAddress);
69 static _ImAddressImpl* GetInstance(ImAddress& imAddress);
72 Tizen::Base::String __serviceProviderName;
73 Tizen::Base::String __imAddress;
78 #endif // _FSCL_INTERNAL_IM_ADDRESS_IMPL_H_