📄 qftp.3qt
字号:
'\" t.TH QFtp 3qt "11 October 2001" "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 NAMEQFtp \- Implementation of the FTP protocol.PP\fC#include <qftp.h>\fR.PPInherits 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 DESCRIPTIONThe QFtp class provides an implementation of the FTP protocol..PPThis 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.PPThis code will only work if the QFtp class is registered; to register the class, you must call qInitNetworkProtocols() before using a QUrlOperator with QFtp..PPIf you really need to use QFtp directly, don't forget to set its QUrlOperator with setUrl()..PPSee 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. Thefunction loks at the data and passes it on to the function which canhandle it.SH "SEE ALSO".BR http://doc.trolltech.com/qftp.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com. See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf 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..PThe definitive Qt documentation is provided in HTML format; it islocated at $QTDIR/doc/html and can be read using Qt Assistant or witha web browser. This man page is provided as a convenience for thoseusers who prefer man pages, although this format is not officiallysupported by Trolltech. .PIf 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 Qtversion (3.0.0).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -