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 HERE_MAPS_BEGIN_NAMESPACE
26 * This class encapsulates meta information included in the search responses.
34 * This method is the default constructor.
39 * This method is the copy constructor.
41 * @param rRhs A constant reference to an object whose contents are to be
42 * copied to the newly created instance of the class.
44 MetaInfo(const MetaInfo& rRhs);
47 * This method is the destructor.
52 * This is the assignment operator.
54 * @param rRhs A constant reference to an instance of
55 * <code>MetaInfo</code> whose contents are to be copied into
58 MetaInfo& operator=(const MetaInfo& rRhs);
61 * This methos sets a key that can be used in subsequent requests to
62 * access the next n results.
64 * @param n A key that can be used in subsequent requests to
65 * access the next n results.
67 void SetNextPageInformation(size_t n);
70 * This method retrieves a key that can be used in subsequent requests to
71 * access the next n results.
73 * @return A key that can be used in subsequent requests to
74 * access the next n results.
76 bool GetNextPageInformation(size_t& rDst) const;
79 * This method sets a key that can be used in subsequent requests to
80 * access the previous n results.
82 * @param n A key that can be used in subsequent requests to
83 * access the previous n results.
85 void SetPreviousPageInformation(size_t n);
88 * This method retrieves a key that can be used in subsequent requests to
89 * access the previous n results.
91 * @return A key that can be used in subsequent requests to
92 * access the previous n results.
94 bool GetPreviousPageInformation(size_t& rDst) const;
97 * This method sets the timestamp indicating when the search was run.
99 * @param sTimestamp A constant reference to a string containing the
100 * timestamp indicating when the search was run.
102 void SetTimestamp(const String& sTimestamp);
105 * This method retrieves the timestamp indicating when the search was run.
107 * @param rDst A reference to a string to which the
108 * timestamp indicating when the search was run is to be copied.
110 * @return <code>true</code> if the timestamp has been retrieved
111 * successfully, <code>false</code> if the time stamp cannot be
114 bool GetTimestamp(String& rDst) const;
118 MetaInfoImpl* m_pImpl;
121 HERE_MAPS_END_NAMESPACE