[N_SE-32914, 33582] Fixed priority converting codes
[framework/osp/social.git] / src / FScl_UrlImpl.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17 /**
18 * @file         FScl_UrlImpl.h
19 * @brief        This is the header file for the %_UrlImpl class.
20 *
21 * This header file contains the declarations of the %_UrlImpl class.
22 */
23 #ifndef _FSCL_INTERNAL_URL_IMPL_H_
24 #define _FSCL_INTERNAL_URL_IMPL_H_
25
26 #include <FBaseResult.h>
27 #include <FBaseObject.h>
28 #include <FBaseString.h>
29 #include <FSclTypes.h>
30
31 namespace Tizen { namespace Social
32 {
33
34 class Url;
35
36 class _OSP_EXPORT_ _UrlImpl
37         : public Tizen::Base::Object
38 {
39 public:
40         _UrlImpl(void);
41
42         _UrlImpl(UrlType type, const Tizen::Base::String& url);
43
44         _UrlImpl(const _UrlImpl& rhs);
45
46         virtual ~_UrlImpl(void);
47
48         virtual bool Equals(const Tizen::Base::Object& rhs) const;
49
50         virtual int GetHashCode(void) const;
51
52         UrlType GetType(void) const;
53
54         Tizen::Base::String GetLabel(void) const;
55
56         void SetLabel(const Tizen::Base::String& label);
57
58         Tizen::Base::String GetUrl(void) const;
59
60         void SetType(UrlType type);
61
62         result SetUrl(const Tizen::Base::String& url);
63
64         static const _UrlImpl* GetInstance(const Url& url);
65
66         static _UrlImpl* GetInstance(Url& url);
67
68         _UrlImpl& operator =(const _UrlImpl& rhs);
69
70         bool operator ==(const _UrlImpl& rhs) const;
71
72         bool operator !=(const _UrlImpl& rhs) const;
73
74 private:
75         UrlType __type;
76         Tizen::Base::String __label;
77         Tizen::Base::String __url;
78 }; // _UrlImpl
79
80 }} // Tizen::Social
81
82 #endif // _FSCL_INTERNAL_URL_IMPL_H_