From 566056508183eba065a43770fb7324249e148c12 Mon Sep 17 00:00:00 2001 From: Tobias Taschner Date: Mon, 29 Oct 2018 22:06:15 +0100 Subject: [PATCH] Prepare wxWebRequest::SetStorage() implementation --- include/wx/webrequest.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/wx/webrequest.h b/include/wx/webrequest.h index d670a6fe56..20d8b2b59c 100644 --- a/include/wx/webrequest.h +++ b/include/wx/webrequest.h @@ -40,6 +40,13 @@ public: State_Cancelled }; + enum Storage + { + Storage_Memory, + Storage_File, + Storage_None + }; + virtual ~wxWebRequest() { } virtual void SetHeader(const wxString& name, const wxString& value) @@ -53,6 +60,8 @@ public: void SetIgnoreServerErrorStatus(bool ignore) { m_ignoreServerErrorStatus = ignore; } + virtual void SetStorage(Storage storage); + virtual void Start() = 0; virtual void Cancel() = 0; @@ -75,6 +84,7 @@ public: protected: wxString m_method; + Storage m_storage; wxWebRequestHeaderMap m_headers; wxFileOffset m_dataSize; wxSharedPtr m_dataStream; @@ -83,7 +93,8 @@ protected: m_id(id), m_state(State_Idle), m_ignoreServerErrorStatus(false), - m_dataSize(0) { } + m_dataSize(0), + m_storage(Storage_Memory) { } void SetState(State state, const wxString& failMsg = "");