10#include <solid/devices/ifaces/battery.h>
12#include "wininterface.h"
26 typedef QPair<QString, ulong> Battery;
28 WinBattery(WinDevice *device);
32 virtual int chargePercent()
const;
34 virtual int capacity()
const;
36 virtual bool isRechargeable()
const;
38 virtual bool isPowerSupply()
const;
44 double energy()
const;
45 double energyFull()
const;
46 double energyFullDesign()
const;
47 double energyRate()
const;
49 double voltage()
const;
51 virtual qlonglong timeToEmpty()
const;
53 virtual qlonglong timeToFull()
const;
55 virtual double temperature()
const;
61 virtual bool isPresent()
const;
63 virtual qlonglong remainingTime()
const;
69 static const Battery batteryInfoFromUdi(
const QString &udi);
72 void chargePercentChanged(
int value,
const QString &udi);
73 void capacityChanged(
int value,
const QString &udi);
74 void chargeStateChanged(
int newState,
const QString &udi);
75 void powerSupplyStateChanged(
bool newState,
const QString &udi);
76 void energyChanged(
double energy,
const QString &udi);
77 void energyFullChanged(
double energyFull,
const QString &udi);
78 void energyFullDesignChanged(
double energyFullDesign,
const QString &udi);
79 void energyRateChanged(
double energyRate,
const QString &udi);
80 void timeToEmptyChanged(qlonglong time,
const QString &udi);
81 void temperatureChanged(
double temperature,
const QString &udi);
82 void voltageChanged(
double voltage,
const QString &udi);
86 void presentStateChanged(
bool newState,
const QString &udi);
87 void timeToFullChanged(qlonglong time,
const QString &udi);
88 void remainingTimeChanged(qlonglong time,
const QString &udi);
95 void initSerial(
const Battery &b);
96 void updateTimeToEmpty(
const Battery &b);
97 void updateBatteryTemp(
const Battery &b);
104 bool m_isPowerSupply;
109 double m_energyFullDesign;
115 ulong m_timeUntilEmpty;
BatteryType
This enum type defines the type of the device holding the battery.
Technology
Technology used in the battery.
ChargeState
This enum type defines charge state of a battery.
This device interface is available on batteries.
The single responsibility of this class is to create arguments valid for logind Inhibit call.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:08:14 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.