- wxString GetProtocolName() const { return m_protoinfo->m_protoname; }
- wxString GetHostName() const { return m_hostname; }
- wxString GetURL() const { return m_url; }
- wxProtocol& GetProtocol() { return *m_protocol; }
- wxURLError GetError() const { return m_error; }
- wxString GetPath() const { return m_path; }
+ wxURL& operator = (const wxString& url);
+ wxURL& operator = (const wxURI& url);
+
+ wxProtocol& GetProtocol() { return *m_protocol; }
+ 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; }