The QFtp class provides an implementation of the FTP protocol.
More...
#include <qftp.h>
Inherits QNetworkProtocol.
List of all member functions.
Public Members
Protected Members
void
parseDir ( const QString & buffer, QUrlInfo & info )
Protected Slots
Detailed Description
The QFtp class provides an implementation of the FTP protocol.
This class is derived from QNetworkProtocol and can be
used with QUrlOperator. In fact, you normally will not
use the QFtp class directly, but rather use it through
the QUrlOperator like
QUrlOperator op( "ftp://ftp.trolltech.com" );
op.listChildren();
This code will only work if the QFtp class is registered; to register the
class, you have to call qInitNetworkProtocols() before using a QUrlOperator
with FTP.
If you really need to use QFtp directly, don't forget
to set the QUrlOperator on which it works using
setUrl().
See also Qt Network Documentation, QNetworkProtocol and QUrlOperator.
Member Function Documentation
QFtp::QFtp ()
Constructs a QFtp object.
QFtp::~QFtp () [virtual]
Destructor
void QFtp::dataBytesWritten ( int nbytes ) [protected slot]
This method is called, when nbytes have been successfully written to the
data socket.
void QFtp::dataClosed () [protected slot]
Called when the data connection has been closed
void QFtp::dataConnected () [protected slot]
Some operations require a data connection to the server. If this connection
could be opened, this method handles the rest.
void QFtp::dataReadyRead () [protected slot]
This method is called when new data arrived on the data socket.
void QFtp::parseDir ( const QString & buffer, QUrlInfo & info ) [protected]
Parses buffer, which is one line of a directory list
which came from the FTP server, and sets the
values which have been parsed to info.
void QFtp::readyRead () [protected slot]
If data arrived on the command socket, this slot is called. It looks at
the data and passes it to the correct method which can handle it
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit,
copyright © 1995-2001
Trolltech, all rights reserved.
Copyright © 2001 Trolltech | Trademarks
| Qt version 3.0.0-beta1-beta1
|