summaryrefslogtreecommitdiffstats
path: root/src/eventhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/eventhandler.cpp')
-rw-r--r--src/eventhandler.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/eventhandler.cpp b/src/eventhandler.cpp
index 7a848c4..242c05f 100644
--- a/src/eventhandler.cpp
+++ b/src/eventhandler.cpp
@@ -18,7 +18,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#include <qevent.h>
+#include <ntqevent.h>
#include "ftpthread.h"
#include "eventhandler.h"
@@ -32,8 +32,8 @@ are composed from the type of the arrived event and in certain cases an out_vari
/* constructor */
-EventHandler::EventHandler(QObject *parent, const char *name)
- : QObject(parent, name)
+EventHandler::EventHandler(TQObject *parent, const char *name)
+ : TQObject(parent, name)
{
installEventFilter(this);
@@ -56,7 +56,7 @@ void EventHandler::SetFtpThread(FtpThread* thread)
/* the eventfilter method. when a certain event arrives a signal is emitted, composed
from the events type and a possible out_ variable from the ftp thread object. */
-bool EventHandler::eventFilter(QObject*, QEvent *e )
+bool EventHandler::eventFilter(TQObject*, TQEvent *e )
{
EventType type = (EventType)(e->type());
@@ -67,21 +67,21 @@ bool EventHandler::eventFilter(QObject*, QEvent *e )
}
else if (type == outlog)
{
- QString *line = static_cast<QString*>(static_cast<QCustomEvent*>(e)->data());
+ TQString *line = static_cast<TQString*>(static_cast<TQCustomEvent*>(e)->data());
emit ftp_log(*line, true);
delete line;
return TRUE;
}
else if (type == inlog)
{
- QString *line = static_cast<QString*>(static_cast<QCustomEvent*>(e)->data());
+ TQString *line = static_cast<TQString*>(static_cast<TQCustomEvent*>(e)->data());
emit ftp_log(*line, false);
delete line;
return TRUE;
}
else if (type == xfered)
{
- xferpair* xp = static_cast<xferpair*>(static_cast<QCustomEvent*>(e)->data());
+ xferpair* xp = static_cast<xferpair*>(static_cast<TQCustomEvent*>(e)->data());
emit ftp_xfered(xp->first, xp->second);
delete xp;
return TRUE;
@@ -148,7 +148,7 @@ bool EventHandler::eventFilter(QObject*, QEvent *e )
}
else if (type == pwd_success)
{
- QString *path = static_cast<QString*>(static_cast<QCustomEvent*>(e)->data());
+ TQString *path = static_cast<TQString*>(static_cast<TQCustomEvent*>(e)->data());
emit ftp_pwd(true, *path);
delete path;
return TRUE;
@@ -180,19 +180,19 @@ bool EventHandler::eventFilter(QObject*, QEvent *e )
}
else if (type == dir_success)
{
- contentpair *content = static_cast<contentpair*>(static_cast<QCustomEvent*>(e)->data());
+ contentpair *content = static_cast<contentpair*>(static_cast<TQCustomEvent*>(e)->data());
emit ftp_dir(true, content->first, content->second);
return TRUE;
}
else if (type == dir_failure)
{
- contentpair *content = static_cast<contentpair*>(static_cast<QCustomEvent*>(e)->data());
+ contentpair *content = static_cast<contentpair*>(static_cast<TQCustomEvent*>(e)->data());
emit ftp_dir(false, content->first, content->second);
return TRUE;
}
else if (type == scandir_success)
{
- KbDirInfo *dir = static_cast<KbDirInfo*>(static_cast<QCustomEvent*>(e)->data());
+ KbDirInfo *dir = static_cast<KbDirInfo*>(static_cast<TQCustomEvent*>(e)->data());
emit ftp_scandir(true, dir);
return TRUE;
}