QDBus call return error

Shaun Reich predator106 at gmail.com
Sat Jun 4 18:33:43 CEST 2011


> QDBusInterface *battInterface   =       new QDBusInterface("org.freedesktop.UPower",
>                                                "/org/freedesktop/UPower/devices/battery_BAT1",
>                                                "org.freedesktop.UPower.Device",
>                                                QDBusConnection::systemBus(), this);
>
> QDBusReply<double> wattUsage    =       battInterface->call( "EnergyRate" );
>

> According to you, where is the problem?

Uh..that the signature doesn't exist :D
Either the method requires (a) parameter(s), or that method does not
exist (wrong spelling, case, etc.).

Also, are you sure that there isn't a dataengine that already serves
this information? e.g. "powermanagement" comes to mind presently.

-- 
Shaun Reich,
KDE Software Developer (kde.org)


More information about the Plasma-devel mailing list