1 \section{\class{wxURL
}}\label{wxurl
}
3 \wxheading{Derived from
}
5 \helpref{wxObject
}{wxobject
}
9 \helpref{wxSocketBase
}{wxsocketbase
},
\helpref{wxProtocol
}{wxprotocol
}
11 % ----------------------------------------------------------------------------
13 % ----------------------------------------------------------------------------
14 \latexignore{\rtfignore{\membersection{Members
}}}
16 \membersection{wxURL::wxURL
}\label{wxurlconstr
}
18 \func{}{wxURL
}{\param{const wxString\&
}{ url
}}
20 Constructs an URL object from the string.
22 \wxheading{Parameters
}
24 \docparam{url
}{Url string to parse.
}
26 \membersection{wxURL::
\destruct{wxURL
}}
28 \func{}{\destruct{wxURL
}}{\void}
30 Destroys the URL object.
35 \membersection{wxURL::GetProtocolName
}
37 \constfunc{wxString
}{GetProtocolName
}{\void}
39 Returns the name of the protocol which will be used to get the URL.
44 \membersection{wxURL::GetProtocol
}
46 \func{wxProtocol\&
}{GetProtocol
}{\void}
48 Returns a reference to the protocol which will be used to get the URL.
53 \membersection{wxURL::GetError
}
55 \constfunc{wxURLError
}{GetError
}{\void}
57 Returns the last error. This error refers to the URL parsing or to the protocol.
58 It can be one of these errors:
61 \begin{twocollist
}\itemsep=
0pt
%
62 \twocolitem{{\bf wxURL
\_NOERR}}{No error.
}
63 \twocolitem{{\bf wxURL
\_SNTXERR}}{Syntax error in the URL string.
}
64 \twocolitem{{\bf wxURL
\_NOPROTO}}{Found no protocol which can get this URL.
}
65 \twocolitem{{\bf wxURL
\_NOHOST}}{An host name is required for this protocol.
}
66 \twocolitem{{\bf wxURL
\_NOPATH}}{A path is required for this protocol.
}
67 \twocolitem{{\bf wxURL
\_CONNERR}}{Connection error.
}
68 \twocolitem{{\bf wxURL
\_PROTOERR}}{An error occured during negotiation.
}
74 \membersection{wxURL::GetInputStream
}
76 \func{wxInputStream *
}{GetInputStream
}{\void}
78 Creates a new input stream on the the specified URL. You can use all but seek
79 functionnality of wxStream. Seek isn't available on all stream. For example,
80 http or ftp streams doesn't deal with it.
82 \wxheading{Return value
}
84 Returns the initialized stream. You will have to delete it yourself.
88 %\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
}