Solid
Go to the documentation of this file.
25 #include <solid/ifaces/battery.h>
27 Solid::Battery::Battery(
QObject *backendObject)
28 : DeviceInterface(*new BatteryPrivate(), backendObject)
30 connect(backendObject, SIGNAL(chargePercentChanged(
int,QString)),
31 this, SIGNAL(chargePercentChanged(
int,QString)));
33 connect(backendObject, SIGNAL(chargeStateChanged(
int,QString)),
34 this, SIGNAL(chargeStateChanged(
int,QString)));
36 connect(backendObject, SIGNAL(plugStateChanged(
bool,QString)),
37 this, SIGNAL(plugStateChanged(
bool,QString)));
66 return_SOLID_CALL(Ifaces::Battery *, d->backendObject(),
false, isRechargeable());
72 return_SOLID_CALL(Ifaces::Battery *, d->backendObject(), NoCharge, chargeState());
75 #include "battery.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Mon Jul 15 2013 13:03:44 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.