--===============1091321149== Content-type: multipart/signed; boundary=nextPart3627945.PopoOR0puj; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit --nextPart3627945.PopoOR0puj Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Em Quinta-feira 29. Abril 2010, =E0s 16.28.35, Duns Ens escreveu: > I would like to get some clarification on a DBus connection problem I hav= e. > I am trying to wrap a kio slave around ktorrents dbus interface to allow > easy usage of torrent shares in all of KDE. >=20 > Now my problem is that I need to have a QObject to connect to the dbus=20 > signals. I have inherited my slave from both QObject and SlaveBase but=20 > although the dbus calls go out to ktorrent and internal signal slot=20 > communication works the dbus signal connection from KTorrent does not > work. dbus-monitor shows that the message is emitted on the specified > interface. >=20 > Maybe I am doing sth. wrong with inheriting QObject for a kio slave? Or do > I need a QApplication with app.exec() in the main function to start some > event loop? You need an event loop to receive D-Bus signals. IOSlaves have no event loop. You need to start a thread and receive the signal there. Be careful with=20 cross-thread synchronisation issues. Also be sure of creating the D-Bus=20 connection in the thread. =2D-=20 Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Senior Product Manager - Nokia, Qt Development Frameworks PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 --nextPart3627945.PopoOR0puj Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQBL2eqkM/XwBW70U1gRApw4AKCgMnERmGLg3Z+zj77bJcxIlk/f7wCgtr8K wFSyBV7nkZi1lQb0LBYTc84= =cpkO -----END PGP SIGNATURE----- --nextPart3627945.PopoOR0puj-- --===============1091321149== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1091321149==--