Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends

ODFtp Class Reference

Inheritance diagram for ODFtp:
CallBacker

List of all members.

Public Member Functions

 ODFtp ()
 ~ODFtp ()
int connectToHost (const char *host, int port=21)
int login (const char *usrnm=0, const char *passwd=0)
int close ()
void abort ()
bool hasPendingCommands () const
int get (const char *file, const char *dest)
int put (const char *file)
int cd (const char *dir)
int list ()
int rename (const char *oldname, const char *newname)
int remove (const char *file)
int mkdir (const char *dir)
int rmdir (const char *dir)
od_int64 bytesAvailable () const
BufferString readBuffer () const
od_int64 nrDone () const
od_int64 totalNr () const
const BufferStringSetfiles () const
const bool isOK () const
void setMessage (const char *)
const char * message () const
const int commandID () const

Public Attributes

Notifier< ODFtpmessageReady
Notifier< ODFtpconnected
Notifier< ODFtpdisconnected
Notifier< ODFtploginDone
Notifier< ODFtpdataTransferProgress
Notifier< ODFtptransferDone
Notifier< ODFtpreadyRead
Notifier< ODFtplistReady
Notifier< ODFtpdone
Notifier< ODFtpcommandStarted
Notifier< ODFtpcommandFinished

Protected Member Functions

void transferDoneCB (CallBacker *)

Protected Attributes

QFtp * qftp_
QFtpConnectorqftpconn_
TypeSet< int > getids_
ObjectSet< QFile > qfiles_
bool error_
BufferString message_
od_int64 nrdone_
od_int64 totalnr_
int commandid_
int connectionstate_
BufferStringSet files_

Friends

class QFtpConnector

Constructor & Destructor Documentation

ODFtp::ODFtp (  ) 
ODFtp::~ODFtp (  ) 

Member Function Documentation

void ODFtp::abort (  ) 
od_int64 ODFtp::bytesAvailable (  )  const
int ODFtp::cd ( const char *  dir  ) 
int ODFtp::close (  ) 
const int ODFtp::commandID (  )  const [inline]
int ODFtp::connectToHost ( const char *  host,
int  port = 21 
)
const BufferStringSet& ODFtp::files (  )  const [inline]
int ODFtp::get ( const char *  file,
const char *  dest 
)
bool ODFtp::hasPendingCommands (  )  const
const bool ODFtp::isOK (  )  const [inline]
int ODFtp::list (  ) 
int ODFtp::login ( const char *  usrnm = 0,
const char *  passwd = 0 
)
const char* ODFtp::message (  )  const [inline]
int ODFtp::mkdir ( const char *  dir  ) 
od_int64 ODFtp::nrDone (  )  const [inline]
int ODFtp::put ( const char *  file  ) 
BufferString ODFtp::readBuffer (  )  const
int ODFtp::remove ( const char *  file  ) 
int ODFtp::rename ( const char *  oldname,
const char *  newname 
)
int ODFtp::rmdir ( const char *  dir  ) 
void ODFtp::setMessage ( const char *   ) 
od_int64 ODFtp::totalNr (  )  const [inline]
void ODFtp::transferDoneCB ( CallBacker  )  [protected]

Friends And Related Function Documentation

friend class QFtpConnector [friend]

Member Data Documentation

int ODFtp::commandid_ [protected]
int ODFtp::connectionstate_ [protected]
bool ODFtp::error_ [protected]
TypeSet<int> ODFtp::getids_ [protected]
od_int64 ODFtp::nrdone_ [protected]
ObjectSet<QFile> ODFtp::qfiles_ [protected]
QFtp* ODFtp::qftp_ [protected]
od_int64 ODFtp::totalnr_ [protected]