kdeconnect-kde/kded/plugins/battery
2014-06-07 04:18:43 +00:00
..
batterydbusinterface.cpp DeclarativePlugin::BatteryInterface removed 2014-02-06 00:37:55 +04:00
batterydbusinterface.h Made some methods const 2014-04-05 20:05:22 +02:00
batteryplugin.cpp i18n fixes 2014-02-28 18:50:06 +01:00
batteryplugin.h The battery percentage for low battery level is now signaled by the device 2013-11-14 16:32:51 +01:00
CMakeLists.txt qDebug -> kDebug with namespaces 2013-11-06 22:16:55 +01:00
kdeconnect_battery.desktop SVN_SILENT made messages (.desktop file) 2014-06-07 04:18:43 +00:00
README The battery percentage for low battery level is now signaled by the device 2013-11-14 16:32:51 +01:00

This plugins receives packages with type "kdeconnect.battery" and reads the
following fields:

isCharging (boolean): If the battery of the peer device is charging
currentCharge (int): The charge % of the peer device
thresholdEvent (int) [optional when = 0, see below]:
    means that a battery threshold event were fired on the remote device:
        0 := no event. generally not transmitted.
        1 := battery entered in low state
    This is an int so in the future we'll be able to subscribe to more events.
    (see BatteryPlugin.ThresholdBatteryEvent)

<TODO>
Symmetrically, it sends its own battery information in packages with the same
format.
</TODO>

It also sends packages with type kdeconnect.battery and a field "request": true,
to ask the peer device to send a package like the mentioned above, and should
also answer this same kind of packages with its own information.

If the battery is low and discharging, it will notify the user.