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