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
}
15 % ----------------------------------------------------------------------------
17 % ----------------------------------------------------------------------------
18 \latexignore{\rtfignore{\membersection{Members
}}}
20 \membersection{wxURL::wxURL
}\label{wxurlconstr
}
22 \func{}{wxURL
}{\param{const wxString\&
}{ url
}}
24 Constructs an URL object from the string.
26 \wxheading{Parameters
}
28 \docparam{url
}{Url string to parse.
}
30 \membersection{wxURL::
\destruct{wxURL
}}
32 \func{}{\destruct{wxURL
}}{\void}
34 Destroys the URL object.
39 \membersection{wxURL::GetProtocolName
}
41 \constfunc{wxString
}{GetProtocolName
}{\void}
43 Returns the name of the protocol which will be used to get the URL.
48 \membersection{wxURL::GetProtocol
}
50 \func{wxProtocol\&
}{GetProtocol
}{\void}
52 Returns a reference to the protocol which will be used to get the URL.
57 \membersection{wxURL::GetError
}
59 \constfunc{wxURLError
}{GetError
}{\void}
61 Returns the last error. This error refers to the URL parsing or to the protocol.
62 It can be one of these errors:
65 \begin{twocollist
}\itemsep=
0pt
%
66 \twocolitem{{\bf wxURL
\_NOERR}}{No error.
}
67 \twocolitem{{\bf wxURL
\_SNTXERR}}{Syntax error in the URL string.
}
68 \twocolitem{{\bf wxURL
\_NOPROTO}}{Found no protocol which can get this URL.
}
69 \twocolitem{{\bf wxURL
\_NOHOST}}{An host name is required for this protocol.
}
70 \twocolitem{{\bf wxURL
\_NOPATH}}{A path is required for this protocol.
}
71 \twocolitem{{\bf wxURL
\_CONNERR}}{Connection error.
}
72 \twocolitem{{\bf wxURL
\_PROTOERR}}{An error occured during negotiation.
}
78 \membersection{wxURL::GetInputStream
}
80 \func{wxInputStream *
}{GetInputStream
}{\void}
82 Creates a new input stream on the the specified URL. You can use all but seek
83 functionnality of wxStream. Seek isn't available on all stream. For example,
84 http or ftp streams doesn't deal with it.
86 \wxheading{Return value
}
88 Returns the initialized stream. You will have to delete it yourself.
92 %\helpref{wxInputStream}{wxinputstream}
98 \membersection{wxURL::SetDefaultProxy
}\label{wxurlsetdefaultproxy
}
100 \func{static void
}{SetDefaultProxy
}{\param{const wxString\&
}{ url
\_proxy}}
102 Sets the default proxy server to use to get the URL. The string specifies
103 the proxy like this: <hostname>:<port number>.
105 \wxheading{Parameters
}
107 \docparam{url
\_proxy}{Specifies the proxy to use
}
111 \helpref{wxURL::SetProxy
}{wxurlsetproxy
}
116 \membersection{wxURL::SetProxy
}\label{wxurlsetproxy
}
118 \func{void
}{SetProxy
}{\param{const wxString\&
}{ url
\_proxy}}
120 Sets the proxy to use for this URL.
124 \helpref{wxURL::SetDefaultProxy
}{wxurlsetdefaultproxy
}