1 \section{\class{wxURL
}}\label{wxurl
}
3 \wxheading{Derived from
}
5 \helpref{wxObject
}{wxobject
}
9 \helpref{wxSocketBase
}{wxsocketbase
},
\helpref{wxProtocol
}{wxprotocol
}
11 % ----------------------------------------------------------------------------
13 % ----------------------------------------------------------------------------
15 \latexignore{\rtfignore{\membersection{Members
}}}
17 \membersection{wxURL::wxURL
}\label{wxurlconstr
}
19 \func{}{wxURL
}{\param{const wxString\&
}{ url
}}
21 Constructs an URL object from the string.
23 \wxheading{Parameters
}
25 \docparam{url
}{Url string to parse.
}
27 \membersection{wxURL::
\destruct{wxURL
}}
29 \func{}{\destruct{wxURL
}}{\void}
31 Destroys the URL object.
36 \membersection{wxURL::GetProtocolName
}
38 \constfunc{wxString
}{GetProtocolName
}{\void}
40 Returns the name of the protocol which will be used to get the URL.
45 \membersection{wxURL::GetProtocol
}
47 \func{wxProtocol\&
}{GetProtocol
}{\void}
49 Returns a reference to the protocol which will be used to get the URL.
54 \membersection{wxURL::GetError
}
56 \constfunc{wxURLError
}{GetError
}{\void}
58 Returns the last error. This error refers to the URL parsing or to the protocol.
59 It can be one of these errors:
62 \begin{twocollist
}\itemsep=
0pt
63 \twocolitem{{\bf wxURL
\_NOERR}}{No error.
}
64 \twocolitem{{\bf wxURL
\_SNTXERR}}{Syntax error in the URL string.
}
65 \twocolitem{{\bf wxURL
\_NOPROTO}}{Found no protocol which can get this URL.
}
66 \twocolitem{{\bf wxURL
\_NOHOST}}{An host name is required for this protocol.
}
67 \twocolitem{{\bf wxURL
\_NOPATH}}{A path is required for this protocol.
}
68 \twocolitem{{\bf wxURL
\_CONNERR}}{Connection error.
}
69 \twocolitem{{\bf wxURL
\_PROTOERR}}{An error occured during negotiation.
}
75 \membersection{wxURL::GetInputStream
}
77 \func{wxInputStream *
}{GetInputStream
}{\void}
79 Creates a new input stream on the the specified URL. You can use all but seek
80 functionnality of wxStream. Seek isn't available on all stream. For example,
81 http or ftp streams doesn't deal with it.
83 \wxheading{Return value
}
85 Returns the initialized stream. You will have to delete it yourself.
89 \helpref{wxInputStream
}{wxinputstream
}
94 \membersection{wxURL::SetDefaultProxy
}\label{wxurlsetdefaultproxy
}
96 \func{static void
}{SetDefaultProxy
}{\param{const wxString\&
}{ url
\_proxy}}
98 Sets the default proxy server to use to get the URL. The string specifies
99 the proxy like this: <hostname>:<port number>.
101 \wxheading{Parameters
}
103 \docparam{url
\_proxy}{Specifies the proxy to use
}
107 \helpref{wxURL::SetProxy
}{wxurlsetproxy
}
112 \membersection{wxURL::SetProxy
}\label{wxurlsetproxy
}
114 \func{void
}{SetProxy
}{\param{const wxString\&
}{ url
\_proxy}}
116 Sets the proxy to use for this URL.
120 \helpref{wxURL::SetDefaultProxy
}{wxurlsetdefaultproxy
}