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.
18 #ifndef GEOCODERREPLY_H_
19 #define GEOCODERREPLY_H_
21 #include "common/HereMaps_global.h"
22 #include "common/BaseReply.h"
24 HERE_MAPS_BEGIN_NAMESPACE
31 * This class encapsulates a reply to a geocoding query.
33 * The class receives the response data returned by the server in reply to a
34 * query asynchronously. Notification that the data is available comes via a
35 * listener object registered on the class by calling <code>AddListener()</code>.
39 class EXPORT_API GeoCoderReply : public BaseReply
44 * This is the default constructor.
49 * This is a destructor.
51 virtual ~GeoCoderReply();
54 * This method retrieves a value indicating the number of results in the
57 * @return An integer value indicating the number of results.
59 size_t GetNumResults() const;
62 * This method retrieves a result at the index specified by the caller.
64 * @param A value indicating the index of the result to retrieve.
66 * @return A constant pointer to an instance of <code>Result</code>.
68 const Result* GetResult(size_t idx) const;
71 * This method retrieves the reply meta information.
73 * @return A constant pointer to an instance of <code>MetaInfo</code>.
75 const MetaInfo* GetMetaInfo() const;
78 HERE_MAPS_NO_COPY_NO_ASSIGN(GeoCoderReply);
79 friend class TestGeoCoderParser;
81 virtual bool OnDataReceived(const unsigned char* pBuffer, size_t uSize);
83 class GeoCoderReplyImpl;
84 GeoCoderReplyImpl* m_pImpl;
87 HERE_MAPS_END_NAMESPACE
89 #endif /* GEOCODERREPLY_H_ */