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 int cycleCount()
const override;
38 virtual bool isRechargeable()
const;
40 virtual bool isPowerSupply()
const;
46 double energy()
const;
47 double energyFull()
const;
48 double energyFullDesign()
const;
49 double energyRate()
const;
51 double voltage()
const;
53 virtual qlonglong timeToEmpty()
const;
55 virtual qlonglong timeToFull()
const;
57 virtual double temperature()
const;
63 virtual bool isPresent()
const;
65 virtual qlonglong remainingTime()
const;
71 static const Battery batteryInfoFromUdi(
const QString &udi);
74 void chargePercentChanged(
int value,
const QString &udi);
75 void capacityChanged(
int value,
const QString &udi);
76 void cycleCountChanged(
int value,
const QString &udi);
77 void chargeStateChanged(
int newState,
const QString &udi);
78 void powerSupplyStateChanged(
bool newState,
const QString &udi);
79 void energyChanged(
double energy,
const QString &udi);
80 void energyFullChanged(
double energyFull,
const QString &udi);
81 void energyFullDesignChanged(
double energyFullDesign,
const QString &udi);
82 void energyRateChanged(
double energyRate,
const QString &udi);
83 void timeToEmptyChanged(qlonglong time,
const QString &udi);
84 void temperatureChanged(
double temperature,
const QString &udi);
85 void voltageChanged(
double voltage,
const QString &udi);
89 void presentStateChanged(
bool newState,
const QString &udi);
90 void timeToFullChanged(qlonglong time,
const QString &udi);
91 void remainingTimeChanged(qlonglong time,
const QString &udi);
98 void initSerial(
const Battery &b);
99 void updateTimeToEmpty(
const Battery &b);
100 void updateBatteryTemp(
const Battery &b);
106 int m_cycleCount = -1;
108 bool m_isPowerSupply;
113 double m_energyFullDesign;
119 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.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:23 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.