DBus Qt bindings

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


--bGR76rFJjkSxVeRa
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.
>=20
> (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=
(),=20
> so it cannot be linked against. As I understand it this should just be a=
=20
> stub.
>=20
> 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=
t=20
> interface. This currently does not work due to the need for two event loo=
ps.
>=20
> 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);
> }
> }
>=20
> Unfortunately this doesn't seem to work - I tried a modified version of=
=20
> tools/dbus-monitor using this function and a QApplication but no messages=
=20
> seem to be delivered. My suspicion is that dbus_connection_dispatch() is =
not=20
> being called.
>=20
> Any suggestions?

Zack, did Alex do any of this stuff?

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

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAFyEocPClnTztfv0RAo74AKCGEw1Xm/pl4sjonSQmhdCj+IOiVQCcC78w
cLM2Ovp5iNou7+FUWu5Myzs=
=tny8
-----END PGP SIGNATURE-----

--bGR76rFJjkSxVeRa--