Applied [ 1555974 ] small wxURL improvements

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-09-17 10:59:18 +00:00
parent 3ab296d9eb
commit 7d90da2b4c
3 changed files with 46 additions and 8 deletions

View 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