KVIrc  4.9.2
DeveloperAPIs
Signals | Public Member Functions | Public Attributes | Private Types | Private Slots | Private Member Functions | Private Attributes | Friends | List of all members
QFtpPI Class Reference

#include <qftp.h>

+ Inheritance diagram for QFtpPI:

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
 

Member Enumeration Documentation

enum QFtpPI::AbortState
private
Enumerator
None 
AbortStarted 
WaitForAbortToFinish 
enum QFtpPI::State
private
Enumerator
Begin 
Idle 
Waiting 
Success 
Failure 

Constructor & Destructor Documentation

QFtpPI::QFtpPI ( QObject *  parent = 0)

Member Function Documentation

void QFtpPI::abort ( )
void QFtpPI::clearPendingCommands ( )
void QFtpPI::connected ( )
privateslot

References Begin, commandSocket, QFtp::Connected, connectState(), and state.

Referenced by QFtpPI().

void QFtpPI::connectionClosed ( )
privateslot

References commandSocket, connectState(), and QFtp::Unconnected.

Referenced by QFtpPI().

void QFtpPI::connectState ( int  )
signal
void QFtpPI::connectToHost ( const QString &  host,
quint16  port 
)
QString QFtpPI::currentCommand ( ) const
inline
void QFtpPI::delayedCloseFinished ( )
privateslot
void QFtpPI::dtpConnectState ( int  s)
privateslot
void QFtpPI::error ( int  ,
const QString &   
)
signal
void QFtpPI::error ( QAbstractSocket::SocketError  e)
privateslot
void QFtpPI::finished ( const QString &  )
signal

Referenced by processReply(), and startNextCmd().

void QFtpPI::hostFound ( )
privateslot

References QFtp::Connecting, and connectState().

Referenced by QFtpPI().

bool QFtpPI::processReply ( )
private
void QFtpPI::rawFtpReply ( int  ,
const QString &   
)
signal

Referenced by processReply().

void QFtpPI::readyRead ( )
privateslot
bool QFtpPI::sendCommand ( const QString &  cmd)
inline
bool QFtpPI::sendCommands ( const QStringList &  cmds)
bool QFtpPI::startNextCmd ( )
private

Friends And Related Function Documentation

friend class QFtpDTP
friend

Member Data Documentation

AbortState QFtpPI::abortState
private
QByteArray QFtpPI::bytesFromSocket
private
QTcpSocket QFtpPI::commandSocket
private
QString QFtpPI::currentCmd
private
QFtpDTP QFtpPI::dtp
QStringList QFtpPI::pendingCommands
private
bool QFtpPI::rawCommand
char QFtpPI::replyCode[3]
private

Referenced by processReply(), and readyRead().

QString QFtpPI::replyText
private
State QFtpPI::state
private
bool QFtpPI::transferConnectionExtended

Referenced by processReply(), and startNextCmd().

bool QFtpPI::waitForDtpToClose
private
bool QFtpPI::waitForDtpToConnect
private

The documentation for this class was generated from the following files: