DBus Qt bindings

Zack Rusin zack@kde.org
Tue, 27 Jan 2004 22:00:11 -0500


On Tuesday 27 January 2004 20:34, Peter Hawkins wrote:
> My first approximation to this is:
> extern "C" {
> void dbus_connection_setup_with_qt_main (DBusConnection *connection)
> {
> 	// FIXME: actually store the integrator somewhere and dispose of it
> as // necessary =)
>         new DBusQt::Internal::Integrator(connection, NULL);
> }
> }

Integrator is internal to the bindings. I don't see a reason for 
exposing it really. 

> Unfortunately this doesn't seem to work - I tried a modified version
> of tools/dbus-monitor using this function and a QApplication but no
> messages seem to be delivered. My suspicion is that
> dbus_connection_dispatch() is not being called.
>
> Any suggestions?

Of course they're not delivered because you don't have a connection. 
Connection dispatches messages.

Zack

-- 
I don't care WHO you are, you're not walking on the water while I'm
fishing.