1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
|
'\" t
.TH QFtp 3qt "18 March 2002" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2001 Trolltech AS. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
.\"
.ad l
.nh
.SH NAME
QFtp \- Implementation of the FTP protocol
.SH SYNOPSIS
\fC#include <qftp.h>\fR
.PP
Inherits QNetworkProtocol.
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBQFtp\fR ()"
.br
.ti -1c
.BI "virtual \fB~QFtp\fR ()"
.br
.in -1c
.SS "Protected Members"
.in +1c
.ti -1c
.BI "void \fBparseDir\fR ( const QString & buffer, QUrlInfo & info )"
.br
.in -1c
.SS "Protected Slots"
.in +1c
.ti -1c
.BI "void \fBreadyRead\fR ()"
.br
.ti -1c
.BI "void \fBdataConnected\fR ()"
.br
.ti -1c
.BI "void \fBdataClosed\fR ()"
.br
.ti -1c
.BI "void \fBdataReadyRead\fR ()"
.br
.ti -1c
.BI "void \fBdataBytesWritten\fR ( int nbytes )"
.br
.in -1c
.SH DESCRIPTION
The QFtp class provides an implementation of the FTP protocol.
.PP
This class is derived from QNetworkProtocol. QFtp is not normally used directly, but rather through a QUrlOperator, for example:
.PP
.nf
.br
QUrlOperator op( "ftp://ftp.trolltech.com" );
.br
op.listChildren(); // Asks the server to provide a directory listing
.br
.fi
.PP
This code will only work if the QFtp class is registered; to register the class, you must call qInitNetworkProtocols() before using a QUrlOperator with QFtp.
.PP
If you really need to use QFtp directly, don't forget to set its QUrlOperator with setUrl().
.PP
See also Qt Network Documentation, QNetworkProtocol, QUrlOperator and Input/Output and Networking.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QFtp::QFtp ()"
Constructs a QFtp object.
.SH "QFtp::~QFtp ()\fC [virtual]\fR"
Destructor
.SH "void QFtp::dataBytesWritten ( int nbytes )\fC [protected slot]\fR"
This function is called, when \fInbytes\fR have been successfully written to the data socket.
.SH "void QFtp::dataClosed ()\fC [protected slot]\fR"
This function is called when the data connection has been closed.
.SH "void QFtp::dataConnected ()\fC [protected slot]\fR"
Some operations require a data connection to the server. If this connection could be opened, this function handles the data connection.
.SH "void QFtp::dataReadyRead ()\fC [protected slot]\fR"
This function is called when new data arrived on the data socket.
.SH "void QFtp::parseDir ( const QString & buffer, QUrlInfo & info )\fC [protected]\fR"
Parses the string, \fIbuffer\fR, which is one line of a directory listing which came from the FTP server, and sets the values which have been parsed to the url info object, \fIinfo\fR.
.SH "void QFtp::readyRead ()\fC [protected slot]\fR"
If data has arrived on the command socket, this slot is called. The
function loks at the data and passes it on to the function which can
handle it
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qftp.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the
license file included in the distribution for a complete license
statement.
.SH AUTHOR
Generated automatically from the source code.
.SH BUGS
If you find a bug in Qt, please report it as described in
.BR http://doc.trolltech.com/bughowto.html .
Good bug reports help us to help you. Thank you.
.P
The definitive Qt documentation is provided in HTML format; it is
located at $QTDIR/doc/html and can be read using Qt Assistant or with
a web browser. This man page is provided as a convenience for those
users who prefer man pages, although this format is not officially
supported by Trolltech.
.P
If you find errors in this manual page, please report them to
.BR qt-bugs@trolltech.com .
Please include the name of the manual page (qftp.3qt) and the Qt
version (3.0.3).
|