DBus Qt bindings

Daniel Stone daniel@freedesktop.org
Wed, 28 Jan 2004 13:40:40 +1100

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 28, 2004 at 12:34:48PM +1100, Peter Hawkins wrote:
> On Mon, 26 Jan 2004 12:37 pm, you wrote:
> > On Sunday 25 January 2004 20:14, you wrote:

And this is why you should put names in attributions ...

> > > Did you ever actually succeed in making the code that is there work?
> > > Or was it still under development?
> >
> > It's under development but it's already working fine. I know people who
> > are actually already using it.
> (Also CC'ing the list since I have finally been able to subscribe)

If this was 'cause of my shuffling around, sorry. I need to get RHAT
people to put in redirects to the Mailman setup on pdx.

> The qt code in CVS does not compile or link at the moment:
> i) qt/message.cpp needs a #include <cstdlib> since it uses malloc()
> ii) The dbus qt library has no implementation of Connection::virtual_hook=
> so it cannot be linked against. As I understand it this should just be a=
> stub.
> What I'm really after is a Qt version of the glib interface function=20
> dbus_connection_setup_with_g_main().
> I am not interested in actually using dbus from C++ with Qt myself, rathe=
r I=20
> am trying to make dbus's python bindings work in the same script as a PyQ=
> interface. This currently does not work due to the need for two event loo=
> 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 =3D)
>         new DBusQt::Internal::Integrator(connection, NULL);
> }
> }
> 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 =
> being called.
> Any suggestions?

Zack, did Alex do any of this stuff?

Daniel Stone                                            <daniel@freedesktop=
freedesktop.org: powering your desktop                http://www.freedeskto=

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.3 (GNU/Linux)