diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 11:53:10 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 11:53:10 -0500 |
commit | dacae0242e905268e9df9aed83f84e91b13a1749 (patch) | |
tree | 26c8dc7f37d040f54265a3471834309a1e248538 /src/ftpthread.h | |
parent | 0d218fd2db1810aafd86f7fc8761c75128f3fcb8 (diff) | |
download | kasablanca-dacae0242e905268e9df9aed83f84e91b13a1749.tar.gz kasablanca-dacae0242e905268e9df9aed83f84e91b13a1749.zip |
Convert to TDE R14 API
Diffstat (limited to 'src/ftpthread.h')
-rw-r--r-- | src/ftpthread.h | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/src/ftpthread.h b/src/ftpthread.h index 4372e82..04609b5 100644 --- a/src/ftpthread.h +++ b/src/ftpthread.h @@ -23,17 +23,17 @@ #define KB_THREAD_TIMEOUT 1000 #include <list> -#include <qthread.h> -#include <qstringlist.h> -#include <qvaluelist.h> -#include <qvaluevector.h> +#include <ntqthread.h> +#include <ntqstringlist.h> +#include <ntqvaluelist.h> +#include <ntqvaluevector.h> #include "eventhandler.h" #include "kbfileinfo.h" using namespace std; class ftplib; -class QObject; +class TQObject; class KbDirInfo; typedef list<KbFileInfo*> filist; @@ -43,36 +43,36 @@ typedef pair<filist, filist> dirpair; /** @author Magnus Kulke */ -class FtpThread : public QThread +class FtpThread : public TQThread { public: FtpThread(); ~FtpThread(); static void CallbackLog(char *log, void *arg, bool out); static int CallbackXfer(off64_t xfered, void *arg); - void SetEventReceiver(QObject* eventreceiver); + void SetEventReceiver(TQObject* eventreceiver); void ClearQueue(); - bool Connect(QString host); - bool Login(QString user, QString pass); + bool Connect(TQString host); + bool Login(TQString user, TQString pass); bool Quit(); bool Pwd(); - bool Chdir(QString path); + bool Chdir(TQString path); bool Cdup(); bool Dir(bool force = false); bool Scandir(KbDirInfo* dir); - bool Rm(QString name); - bool Rmdir(QString name); + bool Rm(TQString name); + bool Rmdir(TQString name); bool Authtls(); bool Pasv(bool flag); bool EncryptData(bool flag, bool force = false); - bool Transfer_Fxp(QString src, QString dst, FtpThread* dstftp, int srctls, int dsttls, off64_t resume = 0, int alt = 0); - bool Mkdir(QString path); - bool Rename(QString src, QString dst); - bool Raw(QString cmd); - bool Transfer_Get(QString src, QString dst, int tls, off64_t resume = 0); - bool Transfer_Put(QString src, QString dst, int tls, off64_t resume = 0); - bool Transfer_Changedir(QString dir, int tls); - bool Transfer_Mkdir(QString dir); + bool Transfer_Fxp(TQString src, TQString dst, FtpThread* dstftp, int srctls, int dsttls, off64_t resume = 0, int alt = 0); + bool Mkdir(TQString path); + bool Rename(TQString src, TQString dst); + bool Raw(TQString cmd); + bool Transfer_Get(TQString src, TQString dst, int tls, off64_t resume = 0); + bool Transfer_Put(TQString src, TQString dst, int tls, off64_t resume = 0); + bool Transfer_Changedir(TQString dir, int tls); + bool Transfer_Mkdir(TQString dir); void Event(EventHandler::EventType type, void *data = NULL); ftplib* Ftp() { return mp_ftp; }; void FxpReportResult(bool result); @@ -104,7 +104,7 @@ private: }; void run(); bool FormatFilelist(const char *filename, - QString current, + TQString current, filist *filetable, filist *dirtable ); @@ -130,27 +130,27 @@ private: void Transfer_Put_thread(); void Transfer_Fxp_thread(); void Transfer_Mkdir_thread(); - bool Scandir_recurse(KbDirInfo *dir, QString path); - bool Delete_recurse(QString name); + bool Scandir_recurse(KbDirInfo *dir, TQString path); + bool Delete_recurse(TQString name); bool ConnectionLost(); private: - QMutex* mp_mutex; - QObject* mp_eventreceiver; + TQMutex* mp_mutex; + TQObject* mp_eventreceiver; ftplib* mp_ftp; - QString m_pwd; + TQString m_pwd; bool m_dataencrypted; KbDirInfo* mp_scandir; filist m_dirlist, m_filelist; dirpair m_dircontent; - QValueList<task> m_tasklist; - QStringList m_stringlist; - QValueList<int> m_intlist; - QValueList<off64_t> m_ulonglist; - QValueList<FtpThread*> m_ftplist; - QValueVector<dirpair> m_cache_vector; - QStringList m_cache_list; + TQValueList<task> m_tasklist; + TQStringList m_stringlist; + TQValueList<int> m_intlist; + TQValueList<off64_t> m_ulonglist; + TQValueList<FtpThread*> m_ftplist; + TQValueVector<dirpair> m_cache_vector; + TQStringList m_cache_list; public: - QString m_linebuffer; + TQString m_linebuffer; }; #endif |