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_UrlImpl.h
18 * @brief This is the header file for the %_UrlImpl class.
20 * This header file contains the declarations of the %_UrlImpl class.
22 #ifndef _FSCL_INTERNAL_URL_IMPL_H_
23 #define _FSCL_INTERNAL_URL_IMPL_H_
25 #include <FBaseResult.h>
26 #include <FBaseObject.h>
27 #include <FBaseString.h>
28 #include <FSclTypes.h>
30 namespace Tizen { namespace Social
35 class _OSP_EXPORT_ _UrlImpl
36 : public Tizen::Base::Object
41 _UrlImpl(UrlType type, const Tizen::Base::String& url);
43 _UrlImpl(const _UrlImpl& rhs);
45 virtual ~_UrlImpl(void);
47 virtual bool Equals(const Tizen::Base::Object& rhs) const;
49 virtual int GetHashCode(void) const;
51 UrlType GetType(void) const;
53 Tizen::Base::String GetLabel(void) const;
55 void SetLabel(const Tizen::Base::String& label);
57 Tizen::Base::String GetUrl(void) const;
59 void SetType(UrlType type);
61 result SetUrl(const Tizen::Base::String& url);
63 static const _UrlImpl* GetInstance(const Url& url);
65 static _UrlImpl* GetInstance(Url& url);
67 _UrlImpl& operator =(const _UrlImpl& rhs);
69 bool operator ==(const _UrlImpl& rhs) const;
71 bool operator !=(const _UrlImpl& rhs) const;
75 Tizen::Base::String __label;
76 Tizen::Base::String __url;
81 #endif // _FSCL_INTERNAL_URL_IMPL_H_