> 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) _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel