diff options
Diffstat (limited to 'src/hardware_batteryCollection.h')
-rw-r--r-- | src/hardware_batteryCollection.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/hardware_batteryCollection.h b/src/hardware_batteryCollection.h index c659c3a..8c977db 100644 --- a/src/hardware_batteryCollection.h +++ b/src/hardware_batteryCollection.h @@ -31,12 +31,7 @@ #ifndef _BATTERYCOLLECTION_H_ #define _BATTERYCOLLECTION_H_ -// Global Header -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -// QT - Header +// TQt - Header #include <tqstring.h> #include <tqstringlist.h> #include <tqobject.h> @@ -46,7 +41,7 @@ class BatteryCollection : public TQObject { - Q_OBJECT + TQ_OBJECT private: @@ -85,7 +80,6 @@ private: * \li BAT_LOW: batterylevel is already low * \li BAT_CRIT: batterylevel has become really critical * \li BAT_NONE: battery state not available - * \li BAT_HAL_ERROR: battery state couldn't be retrieved because of a HAL error */ int state; @@ -117,7 +111,7 @@ private: * This int tells the current rate of the batteries * \li a value >= 0 */ - int present_rate; + double present_rate; //! charge_level in percent that will put battery into warning state int warn_level; @@ -184,7 +178,7 @@ public: //! get the battery Type from enum \ref BAT_TYPE int getBatteryType() const; //! get the current battery rate - int getCurrentRate() const; + double getCurrentRate() const; //! reports the chargelevel in percent when battery goes to state warning int getWarnLevel() const; |