]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/url.tex
VK_APPS handling
[wxWidgets.git] / docs / latex / wx / url.tex
CommitLineData
e79848ac
GL
1\section{\class{wxURL}}\label{wxurl}
2
3\wxheading{Derived from}
4
5\helpref{wxObject}{wxobject}
6
954b8ae6
JS
7\wxheading{Include files}
8
9<wx/url.h>
10
e79848ac
GL
11\wxheading{See also}
12
42ff6409 13\helpref{wxSocketBase}{wxsocketbase}, \helpref{wxProtocol}{wxprotocol}
e79848ac 14
9a1b2c28
GL
15\wxheading{Example}
16
17\begin{verbatim}
18 wxURL url("http://a.host/a.dir/a.file");
296ec7d3 19 wxInputStream *in_stream;
9a1b2c28 20
296ec7d3
VZ
21 in_stream = url.GetInputStream();
22 // Then, you can use all IO calls of in_stream (See wxStream)
9a1b2c28
GL
23\end{verbatim}
24
e79848ac
GL
25% ----------------------------------------------------------------------------
26% Members
27% ----------------------------------------------------------------------------
296ec7d3
VZ
28
29\latexignore{\rtfignore{\wxheading{Members}}}
e79848ac 30
42ff6409
JS
31\membersection{wxURL::wxURL}\label{wxurlconstr}
32
e79848ac
GL
33\func{}{wxURL}{\param{const wxString\&}{ url}}
34
35Constructs an URL object from the string.
36
37\wxheading{Parameters}
38
39\docparam{url}{Url string to parse.}
40
41\membersection{wxURL::\destruct{wxURL}}
42ff6409 42
e79848ac
GL
43\func{}{\destruct{wxURL}}{\void}
44
45Destroys the URL object.
46
47%
48% GetProtocolName
49%
50\membersection{wxURL::GetProtocolName}
42ff6409 51
e79848ac
GL
52\constfunc{wxString}{GetProtocolName}{\void}
53
54Returns the name of the protocol which will be used to get the URL.
55
56%
57% GetProtocol
58%
59\membersection{wxURL::GetProtocol}
42ff6409 60
e79848ac
GL
61\func{wxProtocol\&}{GetProtocol}{\void}
62
63Returns a reference to the protocol which will be used to get the URL.
64
65%
66% GetError
67%
68\membersection{wxURL::GetError}
42ff6409 69
e79848ac
GL
70\constfunc{wxURLError}{GetError}{\void}
71
72Returns the last error. This error refers to the URL parsing or to the protocol.
73It can be one of these errors:
74
75\twocolwidtha{7cm}
6be663cf 76\begin{twocollist}\itemsep=0pt%
e79848ac
GL
77\twocolitem{{\bf wxURL\_NOERR}}{No error.}
78\twocolitem{{\bf wxURL\_SNTXERR}}{Syntax error in the URL string.}
79\twocolitem{{\bf wxURL\_NOPROTO}}{Found no protocol which can get this URL.}
80\twocolitem{{\bf wxURL\_NOHOST}}{An host name is required for this protocol.}
81\twocolitem{{\bf wxURL\_NOPATH}}{A path is required for this protocol.}
82\twocolitem{{\bf wxURL\_CONNERR}}{Connection error.}
83\twocolitem{{\bf wxURL\_PROTOERR}}{An error occured during negotiation.}
84\end{twocollist}%
85
86%
87% GetInputStream
88%
89\membersection{wxURL::GetInputStream}
42ff6409 90
e79848ac
GL
91\func{wxInputStream *}{GetInputStream}{\void}
92
7d2946d2
GL
93Creates a new input stream on the the specified URL. You can use all but seek
94functionnality of wxStream. Seek isn't available on all stream. For example,
95http or ftp streams doesn't deal with it.
e79848ac 96
42ff6409 97\wxheading{Return value}
e79848ac 98
7d2946d2 99Returns the initialized stream. You will have to delete it yourself.
e79848ac 100
42ff6409 101\wxheading{See also}
e79848ac 102
b82827dd
JS
103%\helpref{wxInputStream}{wxinputstream}
104wxInputStream
e79848ac
GL
105
106%
107% SetDefaultProxy
108%
42ff6409
JS
109\membersection{wxURL::SetDefaultProxy}\label{wxurlsetdefaultproxy}
110
e79848ac
GL
111\func{static void}{SetDefaultProxy}{\param{const wxString\&}{ url\_proxy}}
112
113Sets the default proxy server to use to get the URL. The string specifies
114the proxy like this: <hostname>:<port number>.
115
116\wxheading{Parameters}
117
118\docparam{url\_proxy}{Specifies the proxy to use}
119
120\wxheading{See also}
121
122\helpref{wxURL::SetProxy}{wxurlsetproxy}
123
124%
125% SetProxy
126%
42ff6409
JS
127\membersection{wxURL::SetProxy}\label{wxurlsetproxy}
128
e79848ac
GL
129\func{void}{SetProxy}{\param{const wxString\&}{ url\_proxy}}
130
131Sets the proxy to use for this URL.
132
133\wxheading{See also}
134
135\helpref{wxURL::SetDefaultProxy}{wxurlsetdefaultproxy}
42ff6409 136