2
// C++ Interface: %{MODULE}
7
// Author: %{AUTHOR} <%{EMAIL}>, (C) %{YEAR}
9
// Copyright: See COPYING file that comes with this distribution
12
#ifndef INSTALLATIONMANAGERKIO_FTPTRANSPORT_H
13
#define INSTALLATIONMANAGERKIO_FTPTRANSPORT_H
30
namespace BookshelfManager {
35
* This is a reimplementation of Sword's FTP transport class which uses KDE's network functions.
37
* @author Joachim Ansorg
39
class KIO_FTPTransport : public QObject, public sword::FTPTransport {
42
KIO_FTPTransport(const char *host, sword::StatusReporter *statusReporter = 0);
43
virtual ~KIO_FTPTransport();
44
virtual char getURL(const char *destPath, const char *sourceURL);
45
virtual std::vector<struct ftpparse> getDirList(const char *dirURL);
48
void slotCopyResult(KIO::Job*);
49
// void slotCopyPercent(KIO::Job*, unsigned long);
50
void slotTotalSize(KIO::Job *, KIO::filesize_t);
51
void slotCopyProgress(KIO::Job *, KIO::filesize_t);
52
void slotDirListingCanceled();
55
QMap<int, int> m_copyResults;
56
QMap<int, std::vector< struct ftpparse > > m_dirListResults;
57
bool m_listingCancelled;
58
int m_totalSize; //size of currently downloaded file