]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/url.h
Build fix for wxMSWUniv makefile driven builds. univ/setup0.h should be autoregenerat...
[wxWidgets.git] / include / wx / url.h
index 761ba79b2dd83caa3005707c71e8ce66be63ac72..5b350d99fb2c999a8c1877ccc07e65ff69947524 100644 (file)
@@ -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