DBus-Qt

Jérôme Lodewyck jerome.lodewyck at ens.fr
Mon Aug 9 05:25:26 PDT 2004


Hi,

	like two previous posters,

http://freedesktop.org/pipermail/dbus/2004-January/000729.html
http://freedesktop.org/pipermail/dbus/2004-August/001374.html

I needed a qt equivalent for the dbus-connection-setup-with-g-main. Since 
Simone Gotti didn't give news from his patch, I solved the problem myself :

I added a public function to the Connection class :

void Connection::dbus_connection_setup_with_qt_main (DBusConnection 
*connection)
{
  d->setConnection( connection );
}


and changed the integrator's slotRead slot :

void Integrator::slotRead( int fd )
{
  QIntDictIterator<Watch>	it( m_watches );
  for ( ; it.current(); ++it )
    dbus_watch_handle ( it.current()->watch, DBUS_WATCH_READABLE );

  emit readReady();
}

Hope this can help,

Jérôme


More information about the dbus mailing list