diff options
Diffstat (limited to 'src/ftpsession.h')
-rw-r--r-- | src/ftpsession.h | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/src/ftpsession.h b/src/ftpsession.h index 37abcd8..ce4cf1b 100644 --- a/src/ftpsession.h +++ b/src/ftpsession.h @@ -13,11 +13,11 @@ #define FTPSESSION_H #include <kprocess.h> -#include <qstring.h> -#include <qdir.h> -#include <qpixmap.h> -#include <qobject.h> -#include <qcolor.h> +#include <ntqstring.h> +#include <ntqdir.h> +#include <ntqpixmap.h> +#include <ntqobject.h> +#include <ntqcolor.h> #include <list> #include "kbfileinfo.h" @@ -26,25 +26,25 @@ using namespace std; class FtpThread; class EventHandler; -class QMutex; -class QTextEdit; -class QToolButton; -class QListView; +class TQMutex; +class TQTextEdit; +class TQToolButton; +class TQListView; class KbSiteInfo; -class QPopupMenu; +class TQPopupMenu; class KLineEdit; -class QLabel; -class QPoint; +class TQLabel; +class TQPoint; class KbDirInfo; -class QHeader; +class TQHeader; class KbTransferItem; -typedef pair<QString, bool> logentries; +typedef pair<TQString, bool> logentries; /** @author Magnus Kulke */ -class FtpSession : public QObject +class FtpSession : public TQObject { Q_OBJECT public: @@ -56,17 +56,17 @@ public: resume }; public: - FtpSession(QObject *parent = 0, const char *name = 0); + FtpSession(TQObject *parent = 0, const char *name = 0); ~FtpSession(); - void SetLogWindow(QTextEdit* logwindow) { mp_logwindow = logwindow; }; - void SetRefreshButton(QToolButton* refreshbutton) { mp_refreshbutton = refreshbutton; }; - void SetConnectButton(QToolButton* connectbutton) { mp_connectbutton = connectbutton; }; - void SetTransferButton(QToolButton* transferbutton) { mp_transferbutton = transferbutton; } - void SetBrowser(QListView* browser) { mp_browser = browser; }; - void SetStatusLine(QLabel* statusline) { mp_statusline = statusline; }; - void SetEncryptionIcon(QLabel* encryptionicon) { mp_encryptionicon = encryptionicon; }; - void SetBookmarksMenu(QPopupMenu *bookmarksmenu) { mp_bookmarksmenu = bookmarksmenu; }; - void SetRclickMenu(QPopupMenu *rclickmenu) { mp_rclickmenu = rclickmenu; }; + void SetLogWindow(TQTextEdit* logwindow) { mp_logwindow = logwindow; }; + void SetRefreshButton(TQToolButton* refreshbutton) { mp_refreshbutton = refreshbutton; }; + void SetConnectButton(TQToolButton* connectbutton) { mp_connectbutton = connectbutton; }; + void SetTransferButton(TQToolButton* transferbutton) { mp_transferbutton = transferbutton; } + void SetBrowser(TQListView* browser) { mp_browser = browser; }; + void SetStatusLine(TQLabel* statusline) { mp_statusline = statusline; }; + void SetEncryptionIcon(TQLabel* encryptionicon) { mp_encryptionicon = encryptionicon; }; + void SetBookmarksMenu(TQPopupMenu *bookmarksmenu) { mp_bookmarksmenu = bookmarksmenu; }; + void SetRclickMenu(TQPopupMenu *rclickmenu) { mp_rclickmenu = rclickmenu; }; void SetSessionList(list<FtpSession*> *sessionlist) { mp_sessionlist = sessionlist; }; void SetCurrentTransfer(KbTransferItem* currenttransfer) { mp_currenttransfer = currenttransfer; }; bool Connected() { return m_connected; }; @@ -75,14 +75,14 @@ public: bool Occupied() { return m_occupied; }; void Occupy(); void Free(); - QString WorkingDir(); + TQString WorkingDir(); void Transfer(KbTransferItem *item); int CheckFile(KbTransferItem *item); void Abort(); FtpThread* Ftp() { return mp_ftpthread; }; KbSiteInfo* SiteInfo() { return mp_siteinfo; }; - void SetColors(QColor local, QColor success, QColor failure, QColor background); - void SetFont(QFont font); + void SetColors(TQColor local, TQColor success, TQColor failure, TQColor background); + void SetFont(TQFont font); void SetOnFileExistsDefault(filecheck onfileexistsdefault) {m_onfileexistsdefault = onfileexistsdefault; }; void EnableCmdLine(bool b); void FilterHiddenFiles(bool b); @@ -92,38 +92,38 @@ private: FtpThread *mp_ftpthread; EventHandler *mp_eventhandler; KbSiteInfo *mp_siteinfo; - QTextEdit *mp_logwindow; - QToolButton *mp_connectbutton, *mp_refreshbutton, *mp_transferbutton; + TQTextEdit *mp_logwindow; + TQToolButton *mp_connectbutton, *mp_refreshbutton, *mp_transferbutton; KLineEdit *mp_cwdline, *mp_cmdline; - QPopupMenu* mp_bookmarksmenu, *mp_rclickmenu; - QListView *mp_browser; - QLabel *mp_statusline, *mp_encryptionicon; - QString m_remoteworkingdir; - QDir m_localworkingdir; - QColor m_colorsuccess, m_colorfailure, m_colorlocal; - QFont m_logwindowfont; + TQPopupMenu* mp_bookmarksmenu, *mp_rclickmenu; + TQListView *mp_browser; + TQLabel *mp_statusline, *mp_encryptionicon; + TQString m_remoteworkingdir; + TQDir m_localworkingdir; + TQColor m_colorsuccess, m_colorfailure, m_colorlocal; + TQFont m_logwindowfont; int m_sortpref; bool m_connected, m_occupied, m_sortascending, m_startqueue; list<logentries> m_loglist; - QPixmap m_iconencrypted, m_iconunencrypted; - QHeader *mp_header; + TQPixmap m_iconencrypted, m_iconunencrypted; + TQHeader *mp_header; list<FtpSession*> *mp_sessionlist; KbTransferItem *mp_currenttransfer; filecheck m_onfileexistsdefault; bool m_encrypted; public slots: - void SLOT_Log(QString log, bool out); + void SLOT_Log(TQString log, bool out); void SLOT_Xfered(off64_t xfered, bool encrypted); void SLOT_ActionMenu(int i); void SLOT_ConnectMenu(int i); void SLOT_HeaderClicked(int section); - void SLOT_LocalProcessExited(KProcess* proc) { delete proc; }; - void SLOT_ItemClicked(QListViewItem*); - void SLOT_ItemRClicked(QListViewItem * item, const QPoint & point, int col); + void SLOT_LocalProcessExited(TDEProcess* proc) { delete proc; }; + void SLOT_ItemClicked(TQListViewItem*); + void SLOT_ItemRClicked(TQListViewItem * item, const TQPoint & point, int col); void SLOT_Connect(bool success); void SLOT_Login(bool success); - void SLOT_Pwd(bool success, QString pwd); + void SLOT_Pwd(bool success, TQString pwd); void SLOT_Misc(bool success); void SLOT_AuthTls(bool success); void SLOT_EncryptData(bool success); @@ -142,23 +142,23 @@ private: void PrintLog(bool success); void QueueItems(); void RefreshBrowser(); - void UpdateLocal(QString cwd = ""); - //bool RmdirLocal(QString dir); + void UpdateLocal(TQString cwd = ""); + //bool RmdirLocal(TQString dir); void GetFile(KbTransferItem *item, filecheck fc); void PutFile(KbTransferItem *item, filecheck fc); void FxpFile(KbTransferItem *item, filecheck fc); - void ChangeDirectory(QString path); - bool CheckLocalDirectory(QString path); - bool MakeLocalDirectory(QString path); + void ChangeDirectory(TQString path); + bool CheckLocalDirectory(TQString path); + bool MakeLocalDirectory(TQString path); bool CopyLocalFile(KbTransferItem* item); - bool ScandirLocal(KbDirInfo *dir, QString path); + bool ScandirLocal(KbDirInfo *dir, TQString path); void SortItems(); - void MakeDirectory(QString dir); - void timerEvent(QTimerEvent*); + void MakeDirectory(TQString dir); + void timerEvent(TQTimerEvent*); signals: void gui_update(); void gui_queueitems(KbDirInfo* dir, FtpSession* src, FtpSession* dst, bool startqueue); - void gui_succeedtransfer(QListViewItem* item); + void gui_succeedtransfer(TQListViewItem* item); void gui_clearqueue(FtpSession* session); }; |