Add some comments describing wxWebSession methods

No real changes.
This commit is contained in:
Vadim Zeitlin
2020-12-27 13:01:49 +01:00
parent 71d5729171
commit be5f1344b6

View File

@@ -204,6 +204,16 @@ extern WXDLLIMPEXP_DATA_NET(const char) wxWebSessionBackendCURL[];
class WXDLLIMPEXP_NET wxWebSession
{
public:
// Objects of this class can't be created directly, use the following
// factory functions to get access to them.
static wxWebSession& GetDefault();
static wxWebSession* New(const wxString& backend = wxWebSessionBackendDefault);
// Can be used to check if the given backend is available without actually
// creating a session using it.
static bool IsBackendAvailable(const wxString& backend);
virtual ~wxWebSession() { }
virtual wxWebRequest* CreateRequest(const wxString& url, int id = wxID_ANY) = 0;
@@ -217,12 +227,6 @@ public:
wxString GetTempDir() const;
static wxWebSession& GetDefault();
static wxWebSession* New(const wxString& backend = wxWebSessionBackendDefault);
static bool IsBackendAvailable(const wxString& backend);
protected:
wxWebSession();