6#ifndef YARP_UPOWERBATTERY_H
7#define YARP_UPOWERBATTERY_H
12#include <QDBusInterface>
36 bool close()
override;
46 QDBusInterface *m_interface {
nullptr };
upowerBattery: A device to view the battery of a linux laptop in YARP using the yarp::dev::IBattery i...
yarp::dev::ReturnValue getBatteryCurrent(double ¤t) override
Get the instantaneous current measurement.
yarp::dev::ReturnValue getBatteryInfo(std::string &info) override
get the battery hardware characteristics (e.g.
UpowerBattery & operator=(const UpowerBattery &)=delete
yarp::dev::ReturnValue getBatteryTemperature(double &temperature) override
get the battery temperature
UpowerBattery(const UpowerBattery &)=delete
UpowerBattery(UpowerBattery &&)=delete
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool close() override
Close the DeviceDriver.
yarp::dev::ReturnValue getBatteryStatus(Battery_status &status) override
get the battery status
~UpowerBattery() override=default
yarp::dev::ReturnValue getBatteryCharge(double &charge) override
get the battery status of charge
yarp::dev::ReturnValue getBatteryVoltage(double &voltage) override
Get the instantaneous voltage measurement.
UpowerBattery & operator=(UpowerBattery &&)=delete
Interface implemented by all device drivers.
A generic battery interface.
A base class for nested structures that can be searched.