diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-27 18:38:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-27 18:38:43 +0000 |
commit | 006c6dcef6326b789e64b263783fe0e0c99f1a5f (patch) | |
tree | a93dcb4e243b31412c692583fc06a3c792a99e26 /qtmcop/qiomanager.cc | |
parent | 6eb92df39ef692dda2e22f42b02772d0afccf3a4 (diff) | |
download | arts-006c6dcef6326b789e64b263783fe0e0c99f1a5f.tar.gz arts-006c6dcef6326b789e64b263783fe0e0c99f1a5f.zip |
Revert previous commit...some bugs crept in since last build test a week ago and I woul prefer to fix them over the next few days before commiting this patch set.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/arts@1155623 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtmcop/qiomanager.cc')
-rw-r--r-- | qtmcop/qiomanager.cc | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/qtmcop/qiomanager.cc b/qtmcop/qiomanager.cc index 2b4608f..a6990cf 100644 --- a/qtmcop/qiomanager.cc +++ b/qtmcop/qiomanager.cc @@ -22,8 +22,8 @@ #include "qiomanager.h" #include "qiomanager_p.h" -#include <tqsocketnotifier.h> -#include <tqapplication.h> +#include <qsocketnotifier.h> +#include <qapplication.h> #include "debug.h" #include "dispatcher.h" #include "thread.h" @@ -66,11 +66,11 @@ static bool qioBlocking; * QIOWatch: */ QIOWatch::QIOWatch(int fd, int type, IONotify *notify, - TQSocketNotifier::Type qtype, bool reentrant) + QSocketNotifier::Type qtype, bool reentrant) : _fd(fd), _type(type), _client(notify), _reentrant(reentrant) { - qsocketnotify = new TQSocketNotifier(fd,qtype,this); - connect(qsocketnotify,TQT_SIGNAL(activated(int)),this,TQT_SLOT(notify(int))); + qsocketnotify = new QSocketNotifier(fd,qtype,this); + connect(qsocketnotify,SIGNAL(activated(int)),this,SLOT(notify(int))); } void QIOWatch::notify(int socket) @@ -80,17 +80,17 @@ void QIOWatch::notify(int socket) } /* - * TQTimeWatch: + * QTimeWatch: */ -TQTimeWatch::TQTimeWatch(int milliseconds, TimeNotify *notify) +QTimeWatch::QTimeWatch(int milliseconds, TimeNotify *notify) { - timer = new TQTimer(this); - connect( timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(notify()) ); + timer = new QTimer(this); + connect( timer, SIGNAL(timeout()), this, SLOT(notify()) ); timer->start(milliseconds); _client = notify; } -void TQTimeWatch::notify() +void QTimeWatch::notify() { qioManager->dispatch(this); } @@ -179,19 +179,19 @@ void QIOManager::watchFD(int fd, int types, IONotify *notify) if(types & IOType::read) { fdList.push_back( - new QIOWatch(fd, IOType::read, notify, TQSocketNotifier::Read, r) + new QIOWatch(fd, IOType::read, notify, QSocketNotifier::Read, r) ); } if(types & IOType::write) { fdList.push_back( - new QIOWatch(fd, IOType::write, notify, TQSocketNotifier::Write, r) + new QIOWatch(fd, IOType::write, notify, QSocketNotifier::Write, r) ); } if(types & IOType::except) { fdList.push_back( - new QIOWatch(fd, IOType::except, notify, TQSocketNotifier::Exception, + new QIOWatch(fd, IOType::except, notify, QSocketNotifier::Exception, r) ); } @@ -228,17 +228,17 @@ void QIOManager::addTimer(int milliseconds, TimeNotify *notify) notify = new HandleNotifications(); milliseconds = 0; } - timeList.push_back(new TQTimeWatch(milliseconds,notify)); + timeList.push_back(new QTimeWatch(milliseconds,notify)); } void QIOManager::removeTimer(TimeNotify *notify) { - list<TQTimeWatch *>::iterator i; + list<QTimeWatch *>::iterator i; i = timeList.begin(); while(i != timeList.end()) { - TQTimeWatch *w = *i; + QTimeWatch *w = *i; if(w->client() == notify) { @@ -271,7 +271,7 @@ void QIOManager::dispatch(QIOWatch *ioWatch) qioLevel--; } -void QIOManager::dispatch(TQTimeWatch *timeWatch) +void QIOManager::dispatch(QTimeWatch *timeWatch) { qioLevel++; if(qioLevel == 1) |