Solid
battery.h
Go to the documentation of this file.
Definition battery_p.h:29
BatteryType
This enum type defines the type of the device holding the battery.
Definition battery.h:65
void plugStateChanged(bool newState, const QString &udi)
This signal is emitted if the battery get plugged in/out of the battery bay.
void capacityChanged(int value, const QString &udi)
This signal is emitted when the capacity of this battery has changed.
void powerSupplyStateChanged(bool newState, const QString &udi)
This signal is emitted when the power supply state of the battery changes.
void chargeStateChanged(int newState, const QString &udi)
This signal is emitted when the charge state of this battery has changed.
bool isPowerSupply() const
Indicates if this battery is powering the machine or from an attached deviced.
Definition battery.cpp:57
void chargePercentChanged(int value, const QString &udi)
This signal is emitted when the charge percent value of this battery has changed.
static Type deviceInterfaceType()
Get the Solid::DeviceInterface::Type of the Battery device interface.
Definition battery.h:105
Type
This enum type defines the type of device interface that a Device can have.
Definition deviceinterface.h:67
DeviceInterface(DeviceInterfacePrivate &dd, QObject *backendObject)
Definition deviceinterface.cpp:29
This class allows applications to deal with devices available in the underlying system.
Definition device.h:49
Definition acadapter.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.