KIOSlave
Go to the documentation of this file.
26 #include <sys/types.h>
27 #include <sys/socket.h>
58 Ftp(
const QByteArray &pool,
const QByteArray &app );
76 virtual void stat(
const KUrl &url );
79 virtual void mkdir(
const KUrl & url,
int permissions );
80 virtual void rename(
const KUrl & src,
const KUrl & dst, KIO::JobFlags flags );
81 virtual void del(
const KUrl & url,
bool isfile );
82 virtual void chmod(
const KUrl & url,
int permissions );
84 virtual void get(
const KUrl& url );
85 virtual void put(
const KUrl& url,
int permissions, KIO::JobFlags flags );
93 virtual void copy(
const KUrl &src,
const KUrl &dest,
int permissions, KIO::JobFlags flags );
132 bool ftpOpenConnection (LoginMode loginMode);
137 void ftpAutoLoginMacro ();
148 bool ftpLogin(
bool* userChanged = 0);
159 bool ftpSendCmd(
const QByteArray& cmd,
int maxretries = 1 );
167 bool ftpSize(
const QString & path,
char mode );
173 bool ftpFileExists(
const QString& path);
178 bool ftpFolder(
const QString& path,
bool bReportError);
191 bool ftpOpenCommand(
const char *command,
const QString & path,
char mode,
200 bool ftpCloseCommand();
208 bool ftpDataMode(
char cMode);
215 int ftpOpenDataConnection();
220 void ftpCloseDataConnection();
225 int ftpOpenPASVDataConnection();
229 int ftpOpenEPSVDataConnection();
233 int ftpOpenPortDataConnection();
235 bool ftpChmod(
const QString & path,
int permissions );
238 bool ftpOpenDir(
const QString & path );
249 void ftpShortStatAnswer(
const QString& filename,
bool isDir );
251 void ftpStatAnswerNotFound(
const QString & path,
const QString & filename );
258 bool ftpRename(
const QString & src,
const QString & dst, KIO::JobFlags flags );
265 bool ftpOpenControlConnection();
266 bool ftpOpenControlConnection(
const QString & host,
int port );
271 void ftpCloseControlConnection();
281 const char* ftpResponse(
int iOffset);
306 StatusCode ftpPut(
int& iError,
int iCopyFile,
const KUrl& url,
int permissions, KIO::JobFlags flags);
316 StatusCode ftpCopyPut(
int& iError,
int& iCopyFile,
const QString &sCopyFile,
const KUrl& url,
int permissions, KIO::JobFlags flags);
326 StatusCode ftpCopyGet(
int& iError,
int& iCopyFile,
const QString &sCopyFile,
const KUrl& url,
int permissions, KIO::JobFlags flags);
334 StatusCode ftpSendMimeType(
int& iError,
const KUrl& url);
340 void fixupEntryName(
FtpEntry* ftpEnt);
348 void proxyAuthentication(
const QNetworkProxy&, QAuthenticator*);
349 void saveProxyAuthentication();
416 epsvAllUnknown = 0x02,
428 QByteArray m_lastControlLine;
438 QTcpServer *m_server;
443 QAuthenticator* m_socketProxyAuth;
446 #endif // KDELIBS_FTP_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jun 1 2013 12:10:07 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.