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

#include <qftp.h>

+ Inheritance diagram for QFtpDTP:

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
 
QFtpPIpi
 
QTcpSocket * socket
 

Member Enumeration Documentation

Enumerator
CsHostFound 
CsConnected 
CsClosed 
CsHostNotFound 
CsConnectionRefused 

Constructor & Destructor Documentation

QFtpDTP::QFtpDTP ( QFtpPI p,
QObject *  parent = 0 
)

Member Function Documentation

void QFtpDTP::abortConnection ( )
qint64 QFtpDTP::bytesAvailable ( ) const

References bytesFromSocket, and socket.

Referenced by socketReadyRead().

void QFtpDTP::clearData ( )
private
void QFtpDTP::clearError ( )
inline

References err.

Referenced by QFtpPI::processReply().

void QFtpDTP::connectState ( int  )
signal
void QFtpDTP::connectToHost ( const QString &  host,
quint16  port 
)
void QFtpDTP::dataReadyRead ( )
privateslot

References writeData().

void QFtpDTP::dataTransferProgress ( qint64  ,
qint64   
)
signal
QString QFtpDTP::errorMessage ( ) const
inline

References err.

Referenced by QFtpPI::processReply().

bool QFtpDTP::hasError ( ) const
inline

References err.

Referenced by QFtpPI::processReply().

void QFtpDTP::listInfo ( const QUrlInfo )
signal

Referenced by socketReadyRead().

bool QFtpDTP::parseDir ( const QByteArray &  buffer,
const QString &  userName,
QUrlInfo info 
)
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.

void QFtpDTP::readyRead ( )
signal
void QFtpDTP::setBytesTotal ( qint64  bytes)
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().

void QFtpDTP::setupSocket ( )
privateslot
void QFtpDTP::socketBytesWritten ( qint64  bytes)
privateslot
void QFtpDTP::socketConnected ( )
privateslot

References bytesDone, connectState(), and CsConnected.

Referenced by connectToHost(), and setupSocket().

void QFtpDTP::socketConnectionClosed ( )
privateslot
void QFtpDTP::socketError ( QAbstractSocket::SocketError  e)
privateslot
void QFtpDTP::socketReadyRead ( )
privateslot
QTcpSocket::SocketState QFtpDTP::state ( ) const

References socket.

Referenced by QFtpPI::processReply().

void QFtpDTP::waitForConnection ( )

References listener.

Referenced by QFtpPI::processReply().

void QFtpDTP::writeData ( )

Member Data Documentation

QByteArray* QFtpDTP::ba

Referenced by setData(), and socketReadyRead().

qint64 QFtpDTP::bytesDone
private
QByteArray QFtpDTP::bytesFromSocket
private
qint64 QFtpDTP::bytesTotal
private
bool QFtpDTP::callWriteData
private
union { ... } QFtpDTP::data
QIODevice* QFtpDTP::dev

Referenced by setDevice().

QString QFtpDTP::err
private
bool QFtpDTP::is_ba
private
QTcpServer QFtpDTP::listener
private
QFtpPI* QFtpDTP::pi
private

Referenced by socketReadyRead().

QTcpSocket* QFtpDTP::socket
private

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