Fix for CompatTC Fail
[framework/osp/social.git] / src / FScl_UrlImpl.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_UrlImpl.h
18 * @brief        This is the header file for the %_UrlImpl class.
19 *
20 * This header file contains the declarations of the %_UrlImpl class.
21 */
22 #ifndef _FSCL_INTERNAL_URL_IMPL_H_
23 #define _FSCL_INTERNAL_URL_IMPL_H_
24
25 #include <FBaseResult.h>
26 #include <FBaseObject.h>
27 #include <FBaseString.h>
28 #include <FSclTypes.h>
29
30 namespace Tizen { namespace Social
31 {
32
33 class Url;
34
35 class _OSP_EXPORT_ _UrlImpl
36         : public Tizen::Base::Object
37 {
38 public:
39         _UrlImpl(void);
40
41         _UrlImpl(UrlType type, const Tizen::Base::String& url);
42
43         _UrlImpl(const _UrlImpl& rhs);
44
45         virtual ~_UrlImpl(void);
46
47         virtual bool Equals(const Tizen::Base::Object& rhs) const;
48
49         virtual int GetHashCode(void) const;
50
51         UrlType GetType(void) const;
52
53         Tizen::Base::String GetLabel(void) const;
54
55         void SetLabel(const Tizen::Base::String& label);
56
57         Tizen::Base::String GetUrl(void) const;
58
59         void SetType(UrlType type);
60
61         result SetUrl(const Tizen::Base::String& url);
62
63         static const _UrlImpl* GetInstance(const Url& url);
64
65         static _UrlImpl* GetInstance(Url& url);
66
67         _UrlImpl& operator =(const _UrlImpl& rhs);
68
69         bool operator ==(const _UrlImpl& rhs) const;
70
71         bool operator !=(const _UrlImpl& rhs) const;
72
73 private:
74         UrlType __type;
75         Tizen::Base::String __label;
76         Tizen::Base::String __url;
77 }; // _UrlImpl
78
79 }} // Tizen::Social
80
81 #endif // _FSCL_INTERNAL_URL_IMPL_H_