wxURL - doc cleanups, depreciated more methods, more source comments. wxURI - enclosed literal characters with wxT, more source comments, doc cleanups, changed StartsWith(x) to [ou] == x
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -17,16 +17,6 @@ and comparison operators.
|
||||
|
||||
\helpref{wxSocketBase}{wxsocketbase}, \helpref{wxProtocol}{wxprotocol}
|
||||
|
||||
\wxheading{Example}
|
||||
|
||||
\begin{verbatim}
|
||||
wxURL url("http://a.host/a.dir/a.file");
|
||||
wxInputStream *in_stream;
|
||||
|
||||
in_stream = url.GetInputStream();
|
||||
// Then, you can use all IO calls of in_stream (See wxStream)
|
||||
\end{verbatim}
|
||||
|
||||
% ----------------------------------------------------------------------------
|
||||
% Members
|
||||
% ----------------------------------------------------------------------------
|
||||
@@ -53,15 +43,6 @@ contain three consecutive slashes.
|
||||
|
||||
Destroys the URL object.
|
||||
|
||||
%
|
||||
% GetProtocolName
|
||||
%
|
||||
\membersection{wxURL::GetProtocolName}\label{wxurlgetprotocolname}
|
||||
|
||||
\constfunc{wxString}{GetProtocolName}{\void}
|
||||
|
||||
Returns the name of the protocol which will be used to get the URL.
|
||||
|
||||
%
|
||||
% GetProtocol
|
||||
%
|
||||
@@ -71,15 +52,6 @@ Returns the name of the protocol which will be used to get the URL.
|
||||
|
||||
Returns a reference to the protocol which will be used to get the URL.
|
||||
|
||||
%
|
||||
% GetPath
|
||||
%
|
||||
\membersection{wxURL::GetPath}\label{wxurlgetpath}
|
||||
|
||||
\func{wxString}{GetPath}{\void}
|
||||
|
||||
Returns the path of the file to fetch. This path was encoded in the URL.
|
||||
|
||||
%
|
||||
% GetError
|
||||
%
|
||||
@@ -112,6 +84,22 @@ Creates a new input stream on the the specified URL. You can use all but seek
|
||||
functionality of wxStream. Seek isn't available on all stream. For example,
|
||||
http or ftp streams doesn't deal with it.
|
||||
|
||||
Note that this method is somewhat depreciated, all future wxWidgets applications
|
||||
should really use \helpref{wxFileSystem}{wxfilesystem} instead.
|
||||
|
||||
Example:
|
||||
|
||||
\begin{verbatim}
|
||||
wxURL url("http://a.host/a.dir/a.file");
|
||||
if (url.GetError() == wxURL_NOERR)
|
||||
{
|
||||
wxInputStream *in_stream;
|
||||
|
||||
in_stream = url.GetInputStream();
|
||||
// Then, you can use all IO calls of in_stream (See wxStream)
|
||||
}
|
||||
\end{verbatim}
|
||||
|
||||
\wxheading{Return value}
|
||||
|
||||
Returns the initialized stream. You will have to delete it yourself.
|
||||
|
Reference in New Issue
Block a user