20 #ifndef _TDEBATTERYDEVICE_H
21 #define _TDEBATTERYDEVICE_H
23 #include "tdegenericdevice.h"
25 namespace TDEBatteryStatus {
26 enum TDEBatteryStatus {
34 class TDECORE_EXPORT TDEBatteryDevice :
public TDEGenericDevice
41 TDEBatteryDevice(TDEGenericDeviceType::TDEGenericDeviceType dt, TQString dn=TQString::null);
56 double minimumVoltage();
61 double maximumVoltage();
66 double maximumDesignVoltage();
81 double maximumEnergy();
86 double maximumDesignEnergy();
91 double dischargeRate();
96 double timeRemaining();
101 TQString technology();
106 TDEBatteryStatus::TDEBatteryStatus status();
116 double chargePercent();
123 void internalSetVoltage(
double vt);
129 void internalSetMinimumVoltage(
double vt);
135 void internalSetMaximumVoltage(
double vt);
141 void internalSetMaximumDesignVoltage(
double vt);
147 void internalSetEnergy(
double vt);
153 void internalSetAlarmEnergy(
double vt);
159 void internalSetMaximumEnergy(
double vt);
165 void internalSetMaximumDesignEnergy(
double vt);
171 void internalSetDischargeRate(
double vt);
177 void internalSetTimeRemaining(
double tr);
183 void internalSetTechnology(TQString tc);
189 void internalSetStatus(TQString tc);
195 void internalSetInstalled(
bool tc);
198 double m_currentVoltage;
199 double m_minimumVoltage;
200 double m_maximumVoltage;
201 double m_maximumDesignVoltage;
202 double m_alarmEnergy;
203 double m_currentEnergy;
204 double m_maximumEnergy;
205 double m_maximumDesignEnergy;
206 double m_dischargeRate;
207 double m_timeRemaining;
208 TQString m_technology;
209 TDEBatteryStatus::TDEBatteryStatus m_status;
212 friend class TDEHardwareDevices;