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