X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..c3e54dee9173954a7f18a88632fbc263695938f6:/include/wx/url.h diff --git a/include/wx/url.h b/include/wx/url.h index 761ba79b2d..5b350d99fb 100644 --- a/include/wx/url.h +++ b/include/wx/url.h @@ -47,7 +47,7 @@ public: class WXDLLIMPEXP_NET wxURL : public wxURI { public: - wxURL(const wxString& sUrl); + wxURL(const wxString& sUrl = wxEmptyString); wxURL(const wxURI& url); virtual ~wxURL(); @@ -58,6 +58,12 @@ public: wxURLError GetError() const { return m_error; } wxString GetURL() const { return m_url; } + wxURLError SetURL(const wxString &url) + { *this = url; return m_error; } + + bool IsOk() const + { return m_error == wxURL_NOERR; } + wxInputStream *GetInputStream(); #if wxUSE_PROTOCOL_HTTP