Add some comments describing wxWebSession methods
No real changes.
This commit is contained in:
@@ -204,6 +204,16 @@ extern WXDLLIMPEXP_DATA_NET(const char) wxWebSessionBackendCURL[];
|
|||||||
class WXDLLIMPEXP_NET wxWebSession
|
class WXDLLIMPEXP_NET wxWebSession
|
||||||
{
|
{
|
||||||
public:
|
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 ~wxWebSession() { }
|
||||||
|
|
||||||
virtual wxWebRequest* CreateRequest(const wxString& url, int id = wxID_ANY) = 0;
|
virtual wxWebRequest* CreateRequest(const wxString& url, int id = wxID_ANY) = 0;
|
||||||
@@ -217,12 +227,6 @@ public:
|
|||||||
|
|
||||||
wxString GetTempDir() const;
|
wxString GetTempDir() const;
|
||||||
|
|
||||||
static wxWebSession& GetDefault();
|
|
||||||
|
|
||||||
static wxWebSession* New(const wxString& backend = wxWebSessionBackendDefault);
|
|
||||||
|
|
||||||
static bool IsBackendAvailable(const wxString& backend);
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxWebSession();
|
wxWebSession();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user