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.
22 #include <FBaseUtilLinkInfo.h>
24 using namespace Tizen::Base;
25 using namespace Tizen::Base::Collection;
27 namespace Tizen { namespace Base { namespace Utility
30 LinkInfo::LinkInfo(void)
31 : __linkType(LINK_TYPE_NONE)
32 , __pLinkInfoImpl(null)
36 LinkInfo::LinkInfo(const LinkInfo& value)
37 : __pLinkInfoImpl(null)
39 __linkType = value.__linkType;
40 __link = value.__link;
41 __text = value.__text;
44 LinkInfo::LinkInfo(LinkType linkType, const String& link)
45 : __linkType(linkType)
48 , __pLinkInfoImpl(null)
52 LinkInfo::LinkInfo(LinkType linkType, const String& link, const String& text)
53 : __linkType(linkType)
56 , __pLinkInfoImpl(null)
60 LinkInfo::~LinkInfo(void)
65 LinkInfo::operator =(const LinkInfo& rhs)
69 __linkType = rhs.__linkType;
77 LinkInfo::SetLink(const String& link)
83 LinkInfo::GetLink(void) const
89 LinkInfo::SetLinkType(LinkType linkType)
91 __linkType = linkType;
95 LinkInfo::GetLinkType(void) const
101 LinkInfo::SetText(const String& text)
107 LinkInfo::GetText(void) const