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

@@ -93,6 +93,11 @@ public:
HINTERNET GetHandle() const { return m_request; }
wxWebRequestHandle GetNativeHandle() const wxOVERRIDE
{
return (wxWebRequestHandle)GetHandle();
}
private:
wxWebSessionWinHTTP& m_sessionImpl;
wxString m_url;
@@ -137,6 +142,11 @@ public:
HINTERNET GetHandle() const { return m_handle; }
wxWebSessionHandle GetNativeHandle() const wxOVERRIDE
{
return (wxWebSessionHandle)GetHandle();
}
private:
HINTERNET m_handle;