of an existing connection into the Qt main loop
{
}
+void Connection::dbus_connection_setup_with_qt_main (DBusConnection *connection)
+{
+ d->setConnection( connection );
+}
+
+
+
/////////////////////////////////////////////////////////
#include "connection.moc"
Message borrowMessage();
Message popMessage();
void stealBorrowMessage( const Message& );
+ void dbus_connection_setup_with_qt_main (DBusConnection *connection);
public slots:
void open( const QString& );
void Integrator::slotRead( int fd )
{
- Q_UNUSED( fd );
+ QIntDictIterator<Watch> it( m_watches );
+ for ( ; it.current(); ++it )
+ dbus_watch_handle ( it.current()->watch, DBUS_WATCH_READABLE );
+
emit readReady();
}
void Integrator::slotWrite( int fd )
{
- Q_UNUSED( fd );
+ QIntDictIterator<Watch> it( m_watches );
+ for ( ; it.current(); ++it )
+ dbus_watch_handle ( it.current()->watch, DBUS_WATCH_WRITABLE );
}
void Integrator::slotTimeout( DBusTimeout *timeout )