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.
18 * @file FBaseUtilLinkInfo.cpp
19 * @brief This is the implementation file for the LinkeInfo class.
25 #include <FBaseUtilLinkInfo.h>
28 using namespace Tizen::Base;
29 using namespace Tizen::Base::Collection;
31 namespace Tizen { namespace Base { namespace Utility
34 LinkInfo::LinkInfo(void)
35 : __linkType(LINK_TYPE_NONE)
36 , __pLinkInfoImpl(null)
41 LinkInfo::LinkInfo(const LinkInfo& value)
42 : __pLinkInfoImpl(null)
44 __linkType = value.__linkType;
45 __link = value.__link;
46 __text = value.__text;
50 LinkInfo::LinkInfo(LinkType linkType, const String& link)
51 : __linkType(linkType)
54 , __pLinkInfoImpl(null)
59 LinkInfo::LinkInfo(LinkType linkType, const String& link, const String& text)
60 : __linkType(linkType)
63 , __pLinkInfoImpl(null)
68 LinkInfo::~LinkInfo(void)
74 LinkInfo::operator =(const LinkInfo& rhs)
78 __linkType = rhs.__linkType;
87 LinkInfo::SetLink(const String& link)
94 LinkInfo::GetLink(void) const
101 LinkInfo::SetLinkType(LinkType linkType)
103 __linkType = linkType;
108 LinkInfo::GetLinkType(void) const
115 LinkInfo::SetText(const String& text)
122 LinkInfo::GetText(void) const