//
// --------------------------------------------------------------
+// --------------------------------------------------------------
+// Construction
+// --------------------------------------------------------------
+
wxURL::wxURL(const wxString& url) : wxURI(url)
{
Init(url);
wxURL::wxURL(const wxURI& url) : wxURI(url)
{
- Init(url.Get());
+ Init(url.BuildURI());
ParseURL();
}
-wxURL& wxURL::operator = (const wxURI& url)
-{
- wxURI::operator = (url);
- Init(url.Get());
- ParseURL();
- return *this;
-}
-wxURL& wxURL::operator = (const wxString& url)
-{
- wxURI::operator = (url);
- Init(url);
- ParseURL();
- return *this;
-}
-
void wxURL::Init(const wxString& url)
{
m_protocol = NULL;
#endif // wxUSE_SOCKETS
}
+
+// --------------------------------------------------------------
+// Assignment
+// --------------------------------------------------------------
+
+wxURL& wxURL::operator = (const wxURI& url)
+{
+ wxURI::operator = (url);
+ Init(url.BuildURI());
+ ParseURL();
+ return *this;
+}
+wxURL& wxURL::operator = (const wxString& url)
+{
+ wxURI::operator = (url);
+ Init(url);
+ ParseURL();
+ return *this;
+}
+
// --------------------------------------------------------------
// ParseURL
//
return true;
}
+// --------------------------------------------------------------
+// Destruction/Cleanup
+// --------------------------------------------------------------
+
void wxURL::CleanData()
{
#if wxUSE_SOCKETS
#endif
}
+// --------------------------------------------------------------
+// FetchProtocol
+// --------------------------------------------------------------
bool wxURL::FetchProtocol()
{
}
// --------------------------------------------------------------
-// --------- wxURL get ------------------------------------------
+// GetInputStream
// --------------------------------------------------------------
wxInputStream *wxURL::GetInputStream()
#endif // wxUSE_SOCKETS
// ----------------------------------------------------------------------
+// wxURLModule
+//
// A module which deletes the default proxy if we created it
// ----------------------------------------------------------------------