[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: QDBus call return error
From: Shaun Reich <predator106 () gmail ! com>
Date: 2011-06-04 16:33:43
Message-ID: BANLkTi=6KU6C8pZvRiGH9VhAodKwS=AHwQ () mail ! gmail ! com
[Download RAW message or body]
> 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic