|
|
|
@ -70,7 +70,7 @@ QIOWatch::QIOWatch(int fd, int type, IONotify *notify,
|
|
|
|
|
: _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)));
|
|
|
|
|
connect(qsocketnotify,TQ_SIGNAL(activated(int)),this,TQ_SLOT(notify(int)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void QIOWatch::notify(int socket)
|
|
|
|
@ -85,7 +85,7 @@ void QIOWatch::notify(int socket)
|
|
|
|
|
QTimeWatch::QTimeWatch(int milliseconds, TimeNotify *notify)
|
|
|
|
|
{
|
|
|
|
|
timer = new TQTimer(this);
|
|
|
|
|
connect( timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(notify()) );
|
|
|
|
|
connect( timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(notify()) );
|
|
|
|
|
timer->start(milliseconds);
|
|
|
|
|
_client = notify;
|
|
|
|
|
}
|
|
|
|
|