diff options
Diffstat (limited to 'src/hardware_battery.h')
-rw-r--r-- | src/hardware_battery.h | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/src/hardware_battery.h b/src/hardware_battery.h index 8f9a268..25557f4 100644 --- a/src/hardware_battery.h +++ b/src/hardware_battery.h @@ -32,12 +32,7 @@ #ifndef _BATTERY_H_ #define _BATTERY_H_ -// Global Header -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -// QT - Header +// TQt - Header #include <tqstring.h> #include <tqstringlist.h> #include <tqobject.h> @@ -49,7 +44,7 @@ class Battery : public TQObject { - Q_OBJECT + TQ_OBJECT private: @@ -162,7 +157,7 @@ private: * second) the currently reported charging/discharging rate. * \li a value >= 0 */ - int present_rate; + double present_rate; //! Expected minutes unitl fully discharged/charged /*! * This int tells the current estimate until the battery is fully @@ -262,8 +257,8 @@ public: int getState() const; //! estimates the remaining minutes until fully charged/discharged int getRemainingMinutes() const; - //! current charging/discharging rate - int getPresentRate() const; + //! current charging/discharging rate + double getPresentRate() const; //! maximum capacity of this battery by design int getDesignCapacity() const; //! current charging state as enum BAT_CHARG_STATE @@ -282,16 +277,6 @@ public: //! reports the chargelevel in percent when battery goes to state critical int getCritLevel() const; - //writeable access to internals - //! Resets the current TDE hardware library udi used by the one given - /*! - * The given TQString will be (checked and) used as new TDE hardware library udi for the battery. - * But don't forget to do a recheck of the battery afterwards. - * \li returns TRUE: if reset was successfull - * \li returns FALSE: if reset couldn't be applied - */ - bool resetUdi(TQString); - //! sets the chargelevel in percent when battery should go into state warning void setWarnLevel(int _warn_level); //! sets the chargelevel in percent when battery should go into state low @@ -336,8 +321,7 @@ enum BAT_STATE { BAT_WARN, BAT_LOW, BAT_CRIT, - BAT_NORM, - BAT_HAL_ERROR + BAT_NORM }; #endif |