]>
Commit | Line | Data |
---|---|---|
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 GL |
14 | |
15 | % ---------------------------------------------------------------------------- | |
16 | % Members | |
17 | % ---------------------------------------------------------------------------- | |
e79848ac GL |
18 | \latexignore{\rtfignore{\membersection{Members}}} |
19 | ||
42ff6409 JS |
20 | \membersection{wxURL::wxURL}\label{wxurlconstr} |
21 | ||
e79848ac GL |
22 | \func{}{wxURL}{\param{const wxString\&}{ url}} |
23 | ||
24 | Constructs an URL object from the string. | |
25 | ||
26 | \wxheading{Parameters} | |
27 | ||
28 | \docparam{url}{Url string to parse.} | |
29 | ||
30 | \membersection{wxURL::\destruct{wxURL}} | |
42ff6409 | 31 | |
e79848ac GL |
32 | \func{}{\destruct{wxURL}}{\void} |
33 | ||
34 | Destroys the URL object. | |
35 | ||
36 | % | |
37 | % GetProtocolName | |
38 | % | |
39 | \membersection{wxURL::GetProtocolName} | |
42ff6409 | 40 | |
e79848ac GL |
41 | \constfunc{wxString}{GetProtocolName}{\void} |
42 | ||
43 | Returns the name of the protocol which will be used to get the URL. | |
44 | ||
45 | % | |
46 | % GetProtocol | |
47 | % | |
48 | \membersection{wxURL::GetProtocol} | |
42ff6409 | 49 | |
e79848ac GL |
50 | \func{wxProtocol\&}{GetProtocol}{\void} |
51 | ||
52 | Returns a reference to the protocol which will be used to get the URL. | |
53 | ||
54 | % | |
55 | % GetError | |
56 | % | |
57 | \membersection{wxURL::GetError} | |
42ff6409 | 58 | |
e79848ac GL |
59 | \constfunc{wxURLError}{GetError}{\void} |
60 | ||
61 | Returns the last error. This error refers to the URL parsing or to the protocol. | |
62 | It can be one of these errors: | |
63 | ||
64 | \twocolwidtha{7cm} | |
6be663cf | 65 | \begin{twocollist}\itemsep=0pt% |
e79848ac GL |
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.} | |
73 | \end{twocollist}% | |
74 | ||
75 | % | |
76 | % GetInputStream | |
77 | % | |
78 | \membersection{wxURL::GetInputStream} | |
42ff6409 | 79 | |
e79848ac GL |
80 | \func{wxInputStream *}{GetInputStream}{\void} |
81 | ||
7d2946d2 GL |
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. | |
e79848ac | 85 | |
42ff6409 | 86 | \wxheading{Return value} |
e79848ac | 87 | |
7d2946d2 | 88 | Returns the initialized stream. You will have to delete it yourself. |
e79848ac | 89 | |
42ff6409 | 90 | \wxheading{See also} |
e79848ac | 91 | |
b82827dd JS |
92 | %\helpref{wxInputStream}{wxinputstream} |
93 | wxInputStream | |
e79848ac GL |
94 | |
95 | % | |
96 | % SetDefaultProxy | |
97 | % | |
42ff6409 JS |
98 | \membersection{wxURL::SetDefaultProxy}\label{wxurlsetdefaultproxy} |
99 | ||
e79848ac GL |
100 | \func{static void}{SetDefaultProxy}{\param{const wxString\&}{ url\_proxy}} |
101 | ||
102 | Sets the default proxy server to use to get the URL. The string specifies | |
103 | the proxy like this: <hostname>:<port number>. | |
104 | ||
105 | \wxheading{Parameters} | |
106 | ||
107 | \docparam{url\_proxy}{Specifies the proxy to use} | |
108 | ||
109 | \wxheading{See also} | |
110 | ||
111 | \helpref{wxURL::SetProxy}{wxurlsetproxy} | |
112 | ||
113 | % | |
114 | % SetProxy | |
115 | % | |
42ff6409 JS |
116 | \membersection{wxURL::SetProxy}\label{wxurlsetproxy} |
117 | ||
e79848ac GL |
118 | \func{void}{SetProxy}{\param{const wxString\&}{ url\_proxy}} |
119 | ||
120 | Sets the proxy to use for this URL. | |
121 | ||
122 | \wxheading{See also} | |
123 | ||
124 | \helpref{wxURL::SetDefaultProxy}{wxurlsetdefaultproxy} | |
42ff6409 | 125 |