Merge "Export internal APIs needed by samsung-socil" into tizen_2.1
[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 class ImAddress;
33
34 class _OSP_EXPORT_ _ImAddressImpl
35         : public Tizen::Base::Object
36 {
37 public:
38         _ImAddressImpl(void);
39
40         _ImAddressImpl(const Tizen::Base::String& serviceProviderName, const Tizen::Base::String& imAddress);
41
42         _ImAddressImpl(const _ImAddressImpl& rhs);
43
44         virtual ~_ImAddressImpl(void);
45
46         virtual bool Equals(const Tizen::Base::Object& rhs) const;
47
48         virtual int GetHashCode(void) const;
49
50         Tizen::Base::String GetServiceProviderName(void) const;
51
52         Tizen::Base::String GetImAddress(void) const;
53
54         void SetServiceProviderName(const Tizen::Base::String& serviceProviderName);
55
56         result SetImAddress(const Tizen::Base::String& imAddress);
57
58         _ImAddressImpl& operator =(const _ImAddressImpl& rhs);
59
60         bool operator ==(const _ImAddressImpl& rhs) const;
61
62         bool operator !=(const _ImAddressImpl& rhs) const;
63
64         static const _ImAddressImpl* GetInstance(const ImAddress& imAddress);
65
66         static _ImAddressImpl* GetInstance(ImAddress& imAddress);
67
68 private:
69         Tizen::Base::String __serviceProviderName;
70         Tizen::Base::String __imAddress;
71 }; // _ImAddressImpl
72
73 }} // Tizen::Social
74
75 #endif // _FSCL_INTERNAL_IM_ADDRESS_IMPL_H_