KVIrc
4.9.2
DeveloperAPIs
|
#include <qftp.h>
Signals | |
void | connectState (int) |
void | error (int, const QString &) |
void | finished (const QString &) |
void | rawFtpReply (int, const QString &) |
Public Member Functions | |
void | abort () |
void | clearPendingCommands () |
void | connectToHost (const QString &host, quint16 port) |
QString | currentCommand () const |
QFtpPI (QObject *parent=0) | |
bool | sendCommand (const QString &cmd) |
bool | sendCommands (const QStringList &cmds) |
Public Attributes | |
QFtpDTP | dtp |
bool | rawCommand |
bool | transferConnectionExtended |
Private Types | |
enum | AbortState { None, AbortStarted, WaitForAbortToFinish } |
enum | State { Begin, Idle, Waiting, Success, Failure } |
Private Slots | |
void | connected () |
void | connectionClosed () |
void | delayedCloseFinished () |
void | dtpConnectState (int) |
void | error (QAbstractSocket::SocketError) |
void | hostFound () |
void | readyRead () |
Private Member Functions | |
bool | processReply () |
bool | startNextCmd () |
Private Attributes | |
AbortState | abortState |
QByteArray | bytesFromSocket |
QTcpSocket | commandSocket |
QString | currentCmd |
QStringList | pendingCommands |
char | replyCode [3] |
QString | replyText |
State | state |
bool | waitForDtpToClose |
bool | waitForDtpToConnect |
Friends | |
class | QFtpDTP |
|
private |
|
private |
QFtpPI::QFtpPI | ( | QObject * | parent = 0 | ) |
References commandSocket, connect(), connected(), connectionClosed(), connectState(), dtp, dtpConnectState(), error(), hostFound(), and readyRead().
void QFtpPI::abort | ( | ) |
References QFtpDTP::abortConnection(), AbortStarted, abortState, commandSocket, currentCmd, dtp, None, and pendingCommands.
void QFtpPI::clearPendingCommands | ( | ) |
References QFtpDTP::abortConnection(), currentCmd, dtp, Idle, pendingCommands, and state.
Referenced by QFtpPrivate::_q_piError().
|
privateslot |
References Begin, commandSocket, QFtp::Connected, connectState(), and state.
Referenced by QFtpPI().
|
privateslot |
References commandSocket, connectState(), and QFtp::Unconnected.
Referenced by QFtpPI().
|
signal |
Referenced by connected(), connectionClosed(), connectToHost(), delayedCloseFinished(), error(), hostFound(), processReply(), and QFtpPI().
void QFtpPI::connectToHost | ( | const QString & | host, |
quint16 | port | ||
) |
References commandSocket, connectState(), dtp, and QFtp::HostLookup.
Referenced by QFtpPrivate::_q_startNextCommand().
|
inline |
Referenced by QFtpPrivate::_q_piError(), and QFtpDTP::socketReadyRead().
|
privateslot |
References connectState(), and QFtp::Unconnected.
|
privateslot |
References QFtp::ConnectionRefused, QFtpDTP::CsClosed, QFtpDTP::CsConnected, QFtpDTP::CsConnectionRefused, QFtpDTP::CsHostNotFound, error(), processReply(), readyRead(), replyText, startNextCmd(), waitForDtpToClose, and waitForDtpToConnect.
Referenced by QFtpPI().
|
signal |
Referenced by dtpConnectState(), error(), processReply(), QFtpPI(), and sendCommands().
|
privateslot |
References commandSocket, QFtp::ConnectionRefused, connectState(), error(), QFtp::HostNotFound, and QFtp::Unconnected.
|
signal |
Referenced by processReply(), and startNextCmd().
|
privateslot |
References QFtp::Connecting, and connectState().
Referenced by QFtpPI().
|
private |
References AbortStarted, abortState, Begin, QFtpDTP::clearError(), commandSocket, connectState(), QFtpDTP::connectToHost(), currentCmd, dtp, error(), QFtpDTP::errorMessage(), Failure, finished(), QFtpDTP::hasError(), Idle, QFtp::LoggedIn, None, pendingCommands, rawCommand, rawFtpReply(), replyCode, replyText, QFtpDTP::setBytesTotal(), startNextCmd(), QFtpDTP::state(), state, Success, t(), transferConnectionExtended, QFtp::UnknownError, WaitForAbortToFinish, QFtpDTP::waitForConnection(), waitForDtpToClose, waitForDtpToConnect, Waiting, and QFtpDTP::writeData().
Referenced by dtpConnectState(), and readyRead().
|
signal |
Referenced by processReply().
|
privateslot |
References commandSocket, i, processReply(), replyCode, replyText, and waitForDtpToClose.
Referenced by dtpConnectState(), and QFtpPI().
|
inline |
bool QFtpPI::sendCommands | ( | const QStringList & | cmds | ) |
References commandSocket, error(), Idle, QFtp::NotConnected, pendingCommands, startNextCmd(), and state.
Referenced by QFtpPrivate::_q_startNextCommand().
|
private |
References commandSocket, currentCmd, dtp, finished(), pendingCommands, replyText, QFtpDTP::setupListener(), state, transferConnectionExtended, waitForDtpToConnect, and Waiting.
Referenced by dtpConnectState(), processReply(), and sendCommands().
|
friend |
|
private |
Referenced by abort(), processReply(), and QFtpDTP::socketReadyRead().
|
private |
|
private |
Referenced by abort(), connected(), connectionClosed(), connectToHost(), error(), processReply(), QFtpPI(), readyRead(), sendCommands(), and startNextCmd().
|
private |
Referenced by abort(), clearPendingCommands(), processReply(), and startNextCmd().
QFtpDTP QFtpPI::dtp |
|
private |
Referenced by abort(), clearPendingCommands(), processReply(), sendCommands(), and startNextCmd().
bool QFtpPI::rawCommand |
Referenced by QFtpPrivate::_q_piFtpReply(), and processReply().
|
private |
Referenced by processReply(), and readyRead().
|
private |
Referenced by dtpConnectState(), processReply(), readyRead(), and startNextCmd().
|
private |
Referenced by clearPendingCommands(), connected(), processReply(), sendCommands(), and startNextCmd().
bool QFtpPI::transferConnectionExtended |
Referenced by processReply(), and startNextCmd().
|
private |
Referenced by dtpConnectState(), processReply(), and readyRead().
|
private |
Referenced by dtpConnectState(), processReply(), and startNextCmd().