Add GetNativeHandle() to wxWebSession and wxWebRequest

This allows to retrieve the handles used internally in order to do
something not supported by the public API yet.
This commit is contained in:
Vadim Zeitlin
2021-01-16 00:21:00 +01:00
parent a561cf199b
commit 65aad890e3
8 changed files with 108 additions and 1 deletions

View File

@@ -92,6 +92,8 @@ public:
virtual wxFileOffset GetBytesExpectedToReceive() const;
virtual wxWebRequestHandle GetNativeHandle() const = 0;
void SetState(wxWebRequest::State state, const wxString& failMsg = wxString());
void ReportDataReceived(size_t sizeReceived);
@@ -222,6 +224,8 @@ public:
const wxWebRequestHeaderMap& GetHeaders() const { return m_headers; }
virtual wxWebSessionHandle GetNativeHandle() const = 0;
protected:
wxWebSessionImpl();