qdbus

How do I extract the returned data from QDBusMessage in a Qt DBus call?

蓝咒 提交于 2019-11-30 07:52:55
I'm trying to call WPA supplicant's DBus interface using Qt's QDBus class library. In particular, I'm trying to use the "Get" property call to retrieve the "Interfaces" property value. The DBus specification (via introspection) for "Get" is: <interface name="org.freedesktop.DBus.Properties"> <method name="Get"> <arg name="interface" type="s" direction="in"/> <arg name="propname" type="s" direction="in"/> <arg name="value" type="v" direction="out"/> </method> ... </interface> Seems simple enough. Two strings input and the output is a variant (these are DBus types). For the "Interfaces" property

How do I extract the returned data from QDBusMessage in a Qt DBus call?

≡放荡痞女 提交于 2019-11-29 10:21:22
问题 I'm trying to call WPA supplicant's DBus interface using Qt's QDBus class library. In particular, I'm trying to use the "Get" property call to retrieve the "Interfaces" property value. The DBus specification (via introspection) for "Get" is: <interface name="org.freedesktop.DBus.Properties"> <method name="Get"> <arg name="interface" type="s" direction="in"/> <arg name="propname" type="s" direction="in"/> <arg name="value" type="v" direction="out"/> </method> ... </interface> Seems simple