2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 * @file FBaseUtilLinkInfo.cpp
20 * @brief This is the implementation file for the LinkeInfo class.
26 #include <FBaseUtilLinkInfo.h>
29 using namespace Tizen::Base;
30 using namespace Tizen::Base::Collection;
32 namespace Tizen { namespace Base { namespace Utility
35 LinkInfo::LinkInfo(void)
36 : __linkType(LINK_TYPE_NONE)
37 , __pLinkInfoImpl(null)
42 LinkInfo::LinkInfo(const LinkInfo& value)
43 : __pLinkInfoImpl(null)
45 __linkType = value.__linkType;
46 __link = value.__link;
47 __text = value.__text;
51 LinkInfo::LinkInfo(LinkType linkType, const String& link)
52 : __linkType(linkType)
55 , __pLinkInfoImpl(null)
60 LinkInfo::LinkInfo(LinkType linkType, const String& link, const String& text)
61 : __linkType(linkType)
64 , __pLinkInfoImpl(null)
69 LinkInfo::~LinkInfo(void)
75 LinkInfo::operator =(const LinkInfo& rhs)
79 __linkType = rhs.__linkType;
88 LinkInfo::SetLink(const String& link)
95 LinkInfo::GetLink(void) const
102 LinkInfo::SetLinkType(LinkType linkType)
104 __linkType = linkType;
109 LinkInfo::GetLinkType(void) const
116 LinkInfo::SetText(const String& text)
123 LinkInfo::GetText(void) const