kdeconnect-kde/plugins/battery
Aleix Pol 21ab5a4f81 Merge branch 'master' into frameworks
Mostly kDebug -> qCDebug
Also some KCmdLineArgs -> QCommandLineParser

Conflicts:
	cli/kdeconnect-cli.cpp
	core/CMakeLists.txt
	core/backends/lan/lanlinkprovider.cpp
	core/daemon.cpp
	core/pluginloader.cpp
	interfaces/CMakeLists.txt
	kio/kiokdeconnect.cpp
	plugins/mousepad/CMakeLists.txt
	plugins/mousepad/mousepadplugin.h
	plugins/mpriscontrol/mpriscontrolplugin.cpp
	plugins/sftp/sftpplugin.cpp
2014-11-04 19:12:29 +01:00
..
batterydbusinterface.cpp Remove kdebugnamespace completely and replace by core_debug 2014-09-22 00:59:34 +02:00
batterydbusinterface.h Fixed notifications not being appearing in the model nor in the plasmoid 2014-07-01 01:26:07 +02:00
batteryplugin.cpp Make kdeconnect core compile without KDELibs4Support 2014-09-22 02:40:51 +02:00
batteryplugin.h Port battery away from kDebug 2014-09-22 00:44:17 +02:00
CMakeLists.txt Remove KDELibs4Support in the Battery plugin 2014-09-22 09:16:29 +02:00
kdeconnect_battery.desktop SVN_SILENT made messages (.desktop file) 2014-11-02 04:01:28 +00: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.