X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/26531700c7ec84872c60899ce6219954499086da..6df6e35a3eae74404f15f8f7c09ce19c29f47b4a:/include/wx/url.h diff --git a/include/wx/url.h b/include/wx/url.h index d242169b33..5b350d99fb 100644 --- a/include/wx/url.h +++ b/include/wx/url.h @@ -12,10 +12,6 @@ #ifndef _WX_URL_H #define _WX_URL_H -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "url.h" -#endif - #include "wx/defs.h" #if wxUSE_URL @@ -51,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(); @@ -62,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