1 \section{\class{wxURL
}}\label{wxurl
}
3 \wxheading{Derived from
}
5 \helpref{wxObject
}{wxobject
}
7 \wxheading{Include files
}
13 \helpref{wxSocketBase
}{wxsocketbase
},
\helpref{wxProtocol
}{wxprotocol
}
18 wxURL url("http://a.host/a.dir/a.file");
19 wxInputStream *in
\_stream;
21 in
\_stream = url.GetInputStream();
22 /* Then, you can use all IO calls of in
\_stream (See wxStream) */
25 % ----------------------------------------------------------------------------
27 % ----------------------------------------------------------------------------
28 \latexignore{\rtfignore{\membersection{Members
}}}
30 \membersection{wxURL::wxURL
}\label{wxurlconstr
}
32 \func{}{wxURL
}{\param{const wxString\&
}{ url
}}
34 Constructs an URL object from the string.
36 \wxheading{Parameters
}
38 \docparam{url
}{Url string to parse.
}
40 \membersection{wxURL::
\destruct{wxURL
}}
42 \func{}{\destruct{wxURL
}}{\void}
44 Destroys the URL object.
49 \membersection{wxURL::GetProtocolName
}
51 \constfunc{wxString
}{GetProtocolName
}{\void}
53 Returns the name of the protocol which will be used to get the URL.
58 \membersection{wxURL::GetProtocol
}
60 \func{wxProtocol\&
}{GetProtocol
}{\void}
62 Returns a reference to the protocol which will be used to get the URL.
67 \membersection{wxURL::GetError
}
69 \constfunc{wxURLError
}{GetError
}{\void}
71 Returns the last error. This error refers to the URL parsing or to the protocol.
72 It can be one of these errors:
75 \begin{twocollist
}\itemsep=
0pt
%
76 \twocolitem{{\bf wxURL
\_NOERR}}{No error.
}
77 \twocolitem{{\bf wxURL
\_SNTXERR}}{Syntax error in the URL string.
}
78 \twocolitem{{\bf wxURL
\_NOPROTO}}{Found no protocol which can get this URL.
}
79 \twocolitem{{\bf wxURL
\_NOHOST}}{An host name is required for this protocol.
}
80 \twocolitem{{\bf wxURL
\_NOPATH}}{A path is required for this protocol.
}
81 \twocolitem{{\bf wxURL
\_CONNERR}}{Connection error.
}
82 \twocolitem{{\bf wxURL
\_PROTOERR}}{An error occured during negotiation.
}
88 \membersection{wxURL::GetInputStream
}
90 \func{wxInputStream *
}{GetInputStream
}{\void}
92 Creates a new input stream on the the specified URL. You can use all but seek
93 functionnality of wxStream. Seek isn't available on all stream. For example,
94 http or ftp streams doesn't deal with it.
96 \wxheading{Return value
}
98 Returns the initialized stream. You will have to delete it yourself.
102 %\helpref{wxInputStream}{wxinputstream}
108 \membersection{wxURL::SetDefaultProxy
}\label{wxurlsetdefaultproxy
}
110 \func{static void
}{SetDefaultProxy
}{\param{const wxString\&
}{ url
\_proxy}}
112 Sets the default proxy server to use to get the URL. The string specifies
113 the proxy like this: <hostname>:<port number>.
115 \wxheading{Parameters
}
117 \docparam{url
\_proxy}{Specifies the proxy to use
}
121 \helpref{wxURL::SetProxy
}{wxurlsetproxy
}
126 \membersection{wxURL::SetProxy
}\label{wxurlsetproxy
}
128 \func{void
}{SetProxy
}{\param{const wxString\&
}{ url
\_proxy}}
130 Sets the proxy to use for this URL.
134 \helpref{wxURL::SetDefaultProxy
}{wxurlsetdefaultproxy
}