2 * Copyright (C) 2013 HERE Global B.V. All rights reserved.
3 * This software, including documentation, is protected by copyright controlled by
4 * HERE Global B.V. (“Software”). All rights are reserved. Copying, including reproducing,
5 * storing, adapting or translating, any or all of this material requires the prior
6 * written consent of HERE Global B.V. You may use this
7 * Software in accordance with the terms and conditions defined in the
8 * HERE Location Platform Services Terms and Conditions, available at
9 * http://developer.here.com/terms-conditions-base
11 * As an additional permission to the above, you may distribute Software,
12 * in object code format as part of an Application, according to, and subject to, terms and
13 * conditions defined in the Tizen Software Development kit (“SDK”) License Agreement.
14 * You may distribute such object code format Application under terms of your choice,
15 * provided that the header and source files of the Software have not been modified.
21 #include "common/HereMaps_global.h"
23 #ifndef TIZEN_MIGRATION
27 HERE_MAPS_BEGIN_NAMESPACE
30 * This class encapsulates a link that may be included in a search (result)
35 class EXPORT_API LinkObject
40 * This method is the default constructor.
45 * This method is the copy constructor.
47 * @param rRhs An object whose contents are to be copied to the instance
50 LinkObject(const LinkObject& rRhs);
53 * This method is the destructor.
58 * This is the assignment operator.
60 * @param rRhs An object whose contents are to be copied to the given
63 * @return A reference to the given instance of the class after its contents
66 LinkObject& operator=(const LinkObject& rRhs);
69 * This method retrieves the id of the resource to which the link points.
71 * @return A string containing the identifier of the object to which the
77 * This method retrieves the title of the resource to which the link points.
79 * @return A string containing a localized title for the resource to which
82 String GetTitle() const;
85 * This method retrieves the URI of the resource to which the link points.
87 * @return The URI for the resource to which the link refers.
89 String GetHref() const;
92 * This method retrieves the identifier of the type of the resource to which
95 * @return A string containing the type identifier for the resource to which
98 String GetType() const;
101 * This method retrieves the URI of the icon for the resource to which the
104 * @return The URI of the icon for the resource to which the link points.
106 String GetIconPath() const;
109 * This method sets the id of the resource to which the link points.
111 * @param rsIdentifier A constant reference to a string containing the
112 * identifier of the object to which the link points.
114 void SetId(const String& rsIdentifier);
117 * This method sets the title of the resource to which the link points.
119 * @param sTitle A constant reference to a string containing a localized
120 * title for the resource to which the link refers.
122 void SetTitle(const String& sTitle);
125 * This method sets the URI of the resource to which the link points.
127 * @param rHref A constant reference to an object holding the URI for the
128 * resource to which the link refers.
130 void SetHref(const String& rHref);
133 * This method sets the identifier of the type of the resource to which
136 * @param sType A constant reference to a string containing the type
137 * identifier for the resource to which the link refers.
139 void SetType(const String& sType);
142 * This method sets the URI of the icon for the resource to which the
145 * @param A constant reference to an object containing the URI of the icon
146 * for the resource to which the link points.
148 void SetIconPath(const String& rIconUrl);
151 class LinkObjectImpl;
152 LinkObjectImpl* m_pImpl;
154 friend class JsonParser;
157 HERE_MAPS_END_NAMESPACE
159 #endif // LINKOBJECT_H_