summaryrefslogtreecommitdiffstats
path: root/kio_ftps/ftp.h
diff options
context:
space:
mode:
Diffstat (limited to 'kio_ftps/ftp.h')
-rw-r--r--kio_ftps/ftp.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/kio_ftps/ftp.h b/kio_ftps/ftp.h
index 0ce98ec..c441fde 100644
--- a/kio_ftps/ftp.h
+++ b/kio_ftps/ftp.h
@@ -37,23 +37,23 @@
#include <sys/types.h>
#include <sys/socket.h>
-#include <qcstring.h>
-#include <qstring.h>
+#include <ntqcstring.h>
+#include <ntqstring.h>
#include <kurl.h>
-#include <kio/slavebase.h>
+#include <tdeio/slavebase.h>
#include <kextsock.h>
#include <ksocks.h>
#include <kssl.h>
struct FtpEntry
{
- QString name;
- QString owner;
- QString group;
- QString link;
+ TQString name;
+ TQString owner;
+ TQString group;
+ TQString link;
- KIO::filesize_t size;
+ TDEIO::filesize_t size;
mode_t type;
mode_t access;
time_t date;
@@ -251,15 +251,15 @@ private:
//===============================================================================
// Ftp
//===============================================================================
-class Ftp : public KIO::SlaveBase
+class Ftp : public TDEIO::SlaveBase
{
// Ftp() {}
public:
- Ftp( const QCString &prot, const QCString &pool, const QCString &app );
+ Ftp( const TQCString &prot, const TQCString &pool, const TQCString &app );
virtual ~Ftp();
- virtual void setHost( const QString& host, int port, const QString& user, const QString& pass );
+ virtual void setHost( const TQString& host, int port, const TQString& user, const TQString& pass );
/**
* Connects to a ftp server and logs us in
@@ -355,7 +355,7 @@ private:
*
* return true if any response received, false on error
*/
- bool ftpSendCmd( const QCString& cmd, int maxretries = 1 );
+ bool ftpSendCmd( const TQCString& cmd, int maxretries = 1 );
/**
* Use the SIZE command to get the file size.
@@ -363,12 +363,12 @@ private:
* @return true on success
* Gets the size into m_size.
*/
- bool ftpSize( const QString & path, char mode );
+ bool ftpSize( const TQString & path, char mode );
/**
* Set the current working directory, but only if not yet current
*/
- bool ftpFolder(const QString& path, bool bReportError);
+ bool ftpFolder(const TQString& path, bool bReportError);
/**
* Runs a command on the ftp server like "list" or "retr". In contrast to
@@ -381,8 +381,8 @@ private:
*
* @return true if the command was accepted by the server.
*/
- bool ftpOpenCommand( const char *command, const QString & path, char mode,
- int errorcode, KIO::fileoffset_t offset = 0 );
+ bool ftpOpenCommand( const char *command, const TQString & path, char mode,
+ int errorcode, TDEIO::fileoffset_t offset = 0 );
/**
* The counterpart to openCommand.
@@ -437,10 +437,10 @@ private:
*/
int ftpAcceptConnect();
- bool ftpChmod( const QString & path, int permissions );
+ bool ftpChmod( const TQString & path, int permissions );
// used by listDir
- bool ftpOpenDir( const QString & path );
+ bool ftpOpenDir( const TQString & path );
/**
* Called to parse directory listings, call this until it returns false
*/
@@ -449,25 +449,25 @@ private:
/**
* Helper to fill an UDSEntry
*/
- void ftpCreateUDSEntry( const QString & filename, FtpEntry& ftpEnt, KIO::UDSEntry& entry, bool isDir );
+ void ftpCreateUDSEntry( const TQString & filename, FtpEntry& ftpEnt, TDEIO::UDSEntry& entry, bool isDir );
- void ftpShortStatAnswer( const QString& filename, bool isDir );
+ void ftpShortStatAnswer( const TQString& filename, bool isDir );
- void ftpStatAnswerNotFound( const QString & path, const QString & filename );
+ void ftpStatAnswerNotFound( const TQString & path, const TQString & filename );
/**
* This is the internal implementation of rename() - set put().
*
* @return true on success.
*/
- bool ftpRename( const QString & src, const QString & dst, bool overwrite );
+ bool ftpRename( const TQString & src, const TQString & dst, bool overwrite );
/**
* Called by openConnection. It opens the control connection to the ftp server.
*
* @return true on success.
*/
- bool ftpOpenControlConnection( const QString & host, unsigned short int port );
+ bool ftpOpenControlConnection( const TQString & host, unsigned short int port );
/**
* closes the socket holding the control connection (see ftpOpenControlConnection)
@@ -495,7 +495,7 @@ private:
* @param hCopyOffset local file only: non-zero for resume
* @return 0 for success, -1 for server error, -2 for client error
*/
- StatusCode ftpGet(int& iError, int iCopyFile, const KURL& url, KIO::fileoffset_t hCopyOffset);
+ StatusCode ftpGet(int& iError, int iCopyFile, const KURL& url, TDEIO::fileoffset_t hCopyOffset);
/**
* This is the internal implementation of put() - see copy().
@@ -517,7 +517,7 @@ private:
* @param sCopyFile path of the local source file
* @return 0 for success, -1 for server error, -2 for client error
*/
- StatusCode ftpCopyPut(int& iError, int& iCopyFile, QString sCopyFile, const KURL& url, int permissions, bool overwrite);
+ StatusCode ftpCopyPut(int& iError, int& iCopyFile, TQString sCopyFile, const KURL& url, int permissions, bool overwrite);
/**
* helper called from copy() to implement FTP -> FILE transfers
@@ -527,7 +527,7 @@ private:
* @param sCopyFile path of the local destination file
* @return 0 for success, -1 for server error, -2 for client error
*/
- StatusCode ftpCopyGet(int& iError, int& iCopyFile, QString sCopyFile, const KURL& url, int permissions, bool overwrite);
+ StatusCode ftpCopyGet(int& iError, int& iCopyFile, TQString sCopyFile, const KURL& url, int permissions, bool overwrite);
/**
* ssl connect method
@@ -536,20 +536,20 @@ private:
private: // data members
- QString m_host;
+ TQString m_host;
unsigned short int m_port;
- QString m_user;
- QString m_pass;
+ TQString m_user;
+ TQString m_pass;
/**
* Where we end up after connecting
*/
- QString m_initialPath;
+ TQString m_initialPath;
KURL m_proxyURL;
/**
* the current working directory - see ftpFolder
*/
- QString m_currentPath;
+ TQString m_currentPath;
/**
* the status returned by the FTP protocol, set in ftpResponse()
@@ -593,8 +593,8 @@ private: // data members
bool m_bPasv;
bool m_bUseProxy;
- KIO::filesize_t m_size;
- static KIO::filesize_t UnknownSize;
+ TDEIO::filesize_t m_size;
+ static TDEIO::filesize_t UnknownSize;
enum
{
@@ -620,7 +620,7 @@ private: // data members
/**
* protocol used currently (ftp or ftps)
*/
- QString m_prot;
+ TQString m_prot;
};
#endif