KVIrc
4.9.2
DeveloperAPIs
|
#include <qftp.h>
Public Types | |
enum | ConnectState { CsHostFound, CsConnected, CsClosed, CsHostNotFound, CsConnectionRefused } |
Signals | |
void | connectState (int) |
void | dataTransferProgress (qint64, qint64) |
void | listInfo (const QUrlInfo &) |
void | readyRead () |
Public Member Functions | |
void | abortConnection () |
qint64 | bytesAvailable () const |
void | clearError () |
void | connectToHost (const QString &host, quint16 port) |
QString | errorMessage () const |
bool | hasError () const |
QFtpDTP (QFtpPI *p, QObject *parent=0) | |
qint64 | read (char *data, qint64 maxlen) |
QByteArray | readAll () |
void | setBytesTotal (qint64 bytes) |
void | setData (QByteArray *) |
void | setDevice (QIODevice *) |
int | setupListener (const QHostAddress &address) |
QTcpSocket::SocketState | state () const |
void | waitForConnection () |
void | writeData () |
Static Public Member Functions | |
static bool | parseDir (const QByteArray &buffer, const QString &userName, QUrlInfo *info) |
Private Slots | |
void | dataReadyRead () |
void | setupSocket () |
void | socketBytesWritten (qint64) |
void | socketConnected () |
void | socketConnectionClosed () |
void | socketError (QAbstractSocket::SocketError) |
void | socketReadyRead () |
Private Member Functions | |
void | clearData () |
Private Attributes | |
qint64 | bytesDone |
QByteArray | bytesFromSocket |
qint64 | bytesTotal |
bool | callWriteData |
union { | |
QByteArray * ba | |
QIODevice * dev | |
} | data |
QString | err |
bool | is_ba |
QTcpServer | listener |
QFtpPI * | pi |
QTcpSocket * | socket |
QFtpDTP::QFtpDTP | ( | QFtpPI * | p, |
QObject * | parent = 0 |
||
) |
References clearData(), connect(), listener, and setupSocket().
void QFtpDTP::abortConnection | ( | ) |
References callWriteData, clearData(), and socket.
Referenced by QFtpPI::abort(), and QFtpPI::clearPendingCommands().
qint64 QFtpDTP::bytesAvailable | ( | ) | const |
References bytesFromSocket, and socket.
Referenced by socketReadyRead().
|
private |
Referenced by abortConnection(), QFtpDTP(), socketConnectionClosed(), and writeData().
|
inline |
References err.
Referenced by QFtpPI::processReply().
|
signal |
Referenced by socketConnected(), socketConnectionClosed(), socketError(), and socketReadyRead().
void QFtpDTP::connectToHost | ( | const QString & | host, |
quint16 | port | ||
) |
References bytesFromSocket, connect(), readyRead(), socket, socketBytesWritten(), socketConnected(), socketConnectionClosed(), socketError(), and socketReadyRead().
Referenced by QFtpPI::processReply().
|
privateslot |
References writeData().
|
signal |
Referenced by setBytesTotal(), socketBytesWritten(), socketReadyRead(), and writeData().
|
inline |
References err.
Referenced by QFtpPI::processReply().
|
inline |
References err.
Referenced by QFtpPI::processReply().
|
signal |
Referenced by socketReadyRead().
|
static |
References _q_parseDosDir(), and _q_parseUnixDir().
Referenced by socketReadyRead().
qint64 QFtpDTP::read | ( | char * | data, |
qint64 | maxlen | ||
) |
References bytesDone, bytesFromSocket, read(), and socket.
Referenced by read(), and writeData().
QByteArray QFtpDTP::readAll | ( | ) |
References bytesDone, bytesFromSocket, and socket.
|
signal |
Referenced by connectToHost(), setupSocket(), and socketReadyRead().
void QFtpDTP::setBytesTotal | ( | qint64 | bytes | ) |
References bytesDone, bytesTotal, and dataTransferProgress().
Referenced by QFtpPrivate::_q_piError(), QFtpPrivate::_q_startNextCommand(), and QFtpPI::processReply().
void QFtpDTP::setData | ( | QByteArray * | ba | ) |
References ba, data, and is_ba.
Referenced by QFtpPrivate::_q_startNextCommand().
void QFtpDTP::setDevice | ( | QIODevice * | dev | ) |
References data, dev, and is_ba.
Referenced by QFtpPrivate::_q_startNextCommand().
int QFtpDTP::setupListener | ( | const QHostAddress & | address | ) |
References listener.
Referenced by QFtpPI::startNextCmd().
|
privateslot |
References connect(), listener, readyRead(), socket, socketBytesWritten(), socketConnected(), socketConnectionClosed(), socketError(), and socketReadyRead().
Referenced by QFtpDTP().
|
privateslot |
References bytesDone, bytesTotal, callWriteData, dataTransferProgress(), and writeData().
Referenced by connectToHost(), and setupSocket().
|
privateslot |
References bytesDone, connectState(), and CsConnected.
Referenced by connectToHost(), and setupSocket().
|
privateslot |
References bytesFromSocket, clearData(), connectState(), CsClosed, data, is_ba, and socket.
Referenced by connectToHost(), and setupSocket().
|
privateslot |
References connectState(), CsConnectionRefused, and CsHostNotFound.
Referenced by connectToHost(), and setupSocket().
|
privateslot |
References QFtpPI::AbortStarted, QFtpPI::abortState, ba, bytesAvailable(), bytesDone, bytesTotal, connectState(), CsClosed, QFtpPI::currentCommand(), data, dataTransferProgress(), err, i, is_ba, listInfo(), parseDir(), pi, readyRead(), and socket.
Referenced by connectToHost(), and setupSocket().
QTcpSocket::SocketState QFtpDTP::state | ( | ) | const |
References socket.
Referenced by QFtpPI::processReply().
void QFtpDTP::waitForConnection | ( | ) |
References listener.
Referenced by QFtpPI::processReply().
void QFtpDTP::writeData | ( | ) |
References blockSize, bytesDone, bytesTotal, callWriteData, clearData(), data, dataTransferProgress(), is_ba, read(), and socket.
Referenced by dataReadyRead(), QFtpPI::processReply(), and socketBytesWritten().
QByteArray* QFtpDTP::ba |
Referenced by setData(), and socketReadyRead().
|
private |
Referenced by read(), readAll(), setBytesTotal(), socketBytesWritten(), socketConnected(), socketReadyRead(), and writeData().
|
private |
Referenced by bytesAvailable(), connectToHost(), read(), readAll(), and socketConnectionClosed().
|
private |
Referenced by setBytesTotal(), socketBytesWritten(), socketReadyRead(), and writeData().
|
private |
Referenced by abortConnection(), socketBytesWritten(), and writeData().
union { ... } QFtpDTP::data |
Referenced by clearData(), setData(), setDevice(), socketConnectionClosed(), socketReadyRead(), and writeData().
QIODevice* QFtpDTP::dev |
Referenced by setDevice().
|
private |
Referenced by clearError(), errorMessage(), hasError(), and socketReadyRead().
|
private |
Referenced by clearData(), setData(), setDevice(), socketConnectionClosed(), socketReadyRead(), and writeData().
|
private |
Referenced by QFtpDTP(), setupListener(), setupSocket(), and waitForConnection().
|
private |
Referenced by socketReadyRead().
|
private |
Referenced by abortConnection(), bytesAvailable(), connectToHost(), read(), readAll(), setupSocket(), socketConnectionClosed(), socketReadyRead(), state(), and writeData().