--===============1432002839== Content-Type: multipart/signed; boundary="nextPart1332153.kc9X7uc5BL"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1332153.kc9X7uc5BL Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Iv=E1n Forcada Atienza wrote: >dbus-send --system --print-reply --reply-timeout=3D2000 >=A0--type=3Dmethod_call --dest=3Dorg.freedesktop.NetworkManager >=A0/org/freedesktop/NetworkManager/Devices/ath0/Networks/WiForcada >=A0org.freedesktop.NetworkManager.getProperties > >Thanks 4 your patience :-))) Please use the tools at your disposal. If the method that you are calling=20 doesn't return a QVariantMap, you shouldn't use QVariantMap. Find out=20 what that type is and use it. =46irst and foremost: qdbus. =46or example: $ qdbus --system=20 org.freedesktop.Hal /org/freedesktop/Hal/devices/computer |=20 grep 'GetProperty(' method QDBusVariant org.freedesktop.Hal.Device.GetProperty(QString key) As you can see, that method returns a QDBusVariant. Another useful tool: qdbusxml2cpp. For example, fetch the XML=20 introspection from Hal like this: $ qdbus --system org.freedesktop.Hal /org/freedesktop/Hal/devices/computer= =20 Introspect > /tmp/Hal.xml And then generate a nice C++ class with qdbusxml2cpp: $ qdbusxml2cpp -p device -m /tmp/Hal.xml org.freedesktop.Hal.Device (Unfortunately, that above will fail because the type a{sv} needs to be=20 further described for qdbusxml2cpp to work. It'll describe what to do.) Use the device.h and device.cpp files it generates in your project. It's a= =20 lot easier to use and a lot error prone as well. Now, I don't have NetworkManager, so I can't help you there. If NM doesn't= =20 return XML introspection (and I think someone told me on IRC it doesn't),=20 please go scream at the NM developers. Any D-Bus application that is=20 self-respecting MUST return its XML introspection. (you can quote me on=20 that) =2D-=20 =A0 Thiago Macieira =A0- =A0thiago (AT) macieira.info - thiago (AT) kde.org =A0 =A0 PGP/GPG: 0x6EF45358; fingerprint: =A0 =A0 E067 918B B660 DBD1 105C =A0966C 33F5 F005 6EF4 5358 --nextPart1332153.kc9X7uc5BL Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBF31XYM/XwBW70U1gRAtWZAJ990U7365R8bfktQhea6WV6IQWVMgCeNpKT /lyzp69ffzbPJkPzeZelCE0= =7hdX -----END PGP SIGNATURE----- --nextPart1332153.kc9X7uc5BL-- --===============1432002839== 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 << --===============1432002839==--