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"
22 #include "common/BaseReply.h"
23 #include "common/RestItemHandle.h"
25 #ifdef TIZEN_MIGRATION
26 #include "internal/RestCurl.h" // MemoryStruct_s
31 HERE_MAPS_BEGIN_NAMESPACE
36 #ifndef TIZEN_MIGRATION
40 //this class is for internal use only - do not rely on this outside
42 #ifdef TIZEN_MIGRATION
43 : public Tizen::Maps::Object
54 RestItem(QueryListener* rListener, BaseReplyPtr pBaseReply);
57 #ifdef TIZEN_SUPPORT_POST_METHOD
58 bool Run(const String& rUri, bool bPost = false, const String& rPostData = "");
60 bool Run(const String& rUri);
64 void OnError(ErrorBase& rError);
65 void OnResponseData(const Tizen::Maps::ByteBuffer& rBuff);
67 #ifndef TIZEN_MIGRATION
68 bool OwnsTransaction(Tizen::Net::Http::HttpTransaction* pTransaction) const;
70 QueryListener* GetListener() const;
72 RestItemHandle::RequestId GetRequestId() const;
75 HERE_MAPS_NO_COPY_NO_ASSIGN(RestItem);
76 friend class RestEngine;
79 RestItemImpl* m_pImpl;
82 HERE_MAPS_END_NAMESPACE