Add wxWebCredentials and use it in SetCredentials()
Prefer using a class encapsulating both the user name and the password to using a pair of variables.
This commit is contained in:
@@ -27,8 +27,7 @@ public:
|
||||
|
||||
wxWebAuthChallenge::Source GetSource() const { return m_source; }
|
||||
|
||||
virtual void
|
||||
SetCredentials(const wxString& user, const wxString& password) = 0;
|
||||
virtual void SetCredentials(const wxWebCredentials& cred) = 0;
|
||||
|
||||
protected:
|
||||
explicit wxWebAuthChallengeImpl(wxWebAuthChallenge::Source source)
|
||||
|
@@ -31,7 +31,7 @@ public:
|
||||
|
||||
bool Init();
|
||||
|
||||
void SetCredentials(const wxString& user, const wxString& password) wxOVERRIDE;
|
||||
void SetCredentials(const wxWebCredentials& cred) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxWebRequestCURL& m_request;
|
||||
|
Reference in New Issue
Block a user