|
|
@ -104,8 +104,8 @@ Timeout::Timeout( TQObject *parent, DBusTimeout *t )
|
|
|
|
: TQObject( parent ), m_timeout( t )
|
|
|
|
: TQObject( parent ), m_timeout( t )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_timer = new TQTimer( this );
|
|
|
|
m_timer = new TQTimer( this );
|
|
|
|
connect( m_timer, TQT_SIGNAL(timeout()),
|
|
|
|
connect( m_timer, TQ_SIGNAL(timeout()),
|
|
|
|
TQT_SLOT(slotTimeout()) );
|
|
|
|
TQ_SLOT(slotTimeout()) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Timeout::slotTimeout()
|
|
|
|
void Timeout::slotTimeout()
|
|
|
@ -193,12 +193,12 @@ void Integrator::addWatch( DBusWatch *watch )
|
|
|
|
|
|
|
|
|
|
|
|
if ( flags & DBUS_WATCH_READABLE ) {
|
|
|
|
if ( flags & DBUS_WATCH_READABLE ) {
|
|
|
|
qtwatch->readSocket = new TQSocketNotifier( fd, TQSocketNotifier::Read, this );
|
|
|
|
qtwatch->readSocket = new TQSocketNotifier( fd, TQSocketNotifier::Read, this );
|
|
|
|
TQObject::connect( qtwatch->readSocket, TQT_SIGNAL(activated(int)), TQT_SLOT(slotRead(int)) );
|
|
|
|
TQObject::connect( qtwatch->readSocket, TQ_SIGNAL(activated(int)), TQ_SLOT(slotRead(int)) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (flags & DBUS_WATCH_WRITABLE) {
|
|
|
|
if (flags & DBUS_WATCH_WRITABLE) {
|
|
|
|
qtwatch->writeSocket = new TQSocketNotifier( fd, TQSocketNotifier::Write, this );
|
|
|
|
qtwatch->writeSocket = new TQSocketNotifier( fd, TQSocketNotifier::Write, this );
|
|
|
|
TQObject::connect( qtwatch->writeSocket, TQT_SIGNAL(activated(int)), TQT_SLOT(slotWrite(int)) );
|
|
|
|
TQObject::connect( qtwatch->writeSocket, TQ_SIGNAL(activated(int)), TQ_SLOT(slotWrite(int)) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
m_watches.insert( fd, qtwatch );
|
|
|
|
m_watches.insert( fd, qtwatch );
|
|
|
@ -221,8 +221,8 @@ void Integrator::addTimeout( DBusTimeout *timeout )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Timeout *mt = new Timeout( this, timeout );
|
|
|
|
Timeout *mt = new Timeout( this, timeout );
|
|
|
|
m_timeouts.insert( timeout, mt );
|
|
|
|
m_timeouts.insert( timeout, mt );
|
|
|
|
connect( mt, TQT_SIGNAL(timeout(DBusTimeout*)),
|
|
|
|
connect( mt, TQ_SIGNAL(timeout(DBusTimeout*)),
|
|
|
|
TQT_SLOT(slotTimeout(DBusTimeout*)) );
|
|
|
|
TQ_SLOT(slotTimeout(DBusTimeout*)) );
|
|
|
|
mt->start();
|
|
|
|
mt->start();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|