kdeconnect-kde/plugins/battery
Aleix Pol f9406e8afc Introduce QVariantMap as an argument of NetworkPackage
Makes it possible to specify the different properties sent at once,
rather than one by one as we used to do.

Also port whenever possible to the initializer-list syntax.

REVIEW: 128269
2016-06-21 20:07:12 +02:00
..
batterydbusinterface.cpp Fix typo in debug msg (Batttery → Battery) 2016-03-24 23:47:55 +01:00
batterydbusinterface.h Clean up use of virtual and override keywords 2016-06-20 19:22:29 +02:00
batteryplugin.cpp Introduce QVariantMap as an argument of NetworkPackage 2016-06-21 20:07:12 +02:00
batteryplugin.h Clean up use of virtual and override keywords 2016-06-20 19:22:29 +02:00
CMakeLists.txt Move the generation of dbus interfaces into interfaces/ 2015-06-18 19:06:14 +02:00
kdeconnect_battery.json Refactor capabilities together with Albert 2016-05-31 17:16:01 +02:00
README Move the plugins into a different top-ĺevel directory 2014-06-14 16:34:11 +02: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.