X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4ada568223b79c8a5769cc351c36a8e2ccd7841..119143528d2ba3dc77ca533aece7982fdcb31bf5:/include/wx/url.h diff --git a/include/wx/url.h b/include/wx/url.h index dae1c6ec30..f8f54af963 100644 --- a/include/wx/url.h +++ b/include/wx/url.h @@ -36,12 +36,13 @@ class WXDLLEXPORT wxURL : public wxObject { DECLARE_DYNAMIC_CLASS(wxURL) protected: static wxProtoInfo *g_protocols; - static wxHTTP g_proxy; + static wxHTTP *g_proxy; wxProtoInfo *m_protoinfo; wxProtocol *m_protocol; wxHTTP m_proxy; wxURLError m_error; wxString m_protoname, m_hostname, m_servname, m_path, m_url; + wxString m_user, m_password; bool PrepProto(wxString& url); bool PrepHost(wxString& url); @@ -51,6 +52,7 @@ protected: bool FetchProtocol(); friend class wxProtoInfo; + friend class wxProtocolModule; public: wxURL(const wxString& url); @@ -60,11 +62,14 @@ public: { return m_protoinfo->m_protoname; } inline wxProtocol& GetProtocol() { return *m_protocol; } inline wxURLError GetError() const { return m_error; } + inline wxString GetPath() const { return m_path; } wxInputStream *GetInputStream(); static void SetDefaultProxy(const wxString& url_proxy); void SetProxy(const wxString& url_proxy); + + static wxString ConvertToValidURI(const wxString& uri); }; #endif