summaryrefslogtreecommitdiffstats
path: root/src/hardware_batteryCollection.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-16 23:01:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-16 23:01:29 +0000
commit4304e8d9dab8e20513e38e71b0debdf6937b630c (patch)
tree76a86f013a811449a5b5bfbbbb962e7db0bbcc6a /src/hardware_batteryCollection.h
parentba24506b3bb46312d998468ad3c1a7f28058b2bd (diff)
downloadtdepowersave-4304e8d9dab8e20513e38e71b0debdf6937b630c.tar.gz
tdepowersave-4304e8d9dab8e20513e38e71b0debdf6937b630c.zip
Finish TQt4 port of kpowersave
This enables both Qt3 and Qt4 builds git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpowersave@1228282 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/hardware_batteryCollection.h')
-rw-r--r--src/hardware_batteryCollection.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/hardware_batteryCollection.h b/src/hardware_batteryCollection.h
index 9b98952..5eaccaf 100644
--- a/src/hardware_batteryCollection.h
+++ b/src/hardware_batteryCollection.h
@@ -37,24 +37,25 @@
#endif
// QT - Header
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qobject.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqobject.h>
// own Header
#include "hardware_battery.h"
-class BatteryCollection : public QObject {
+class BatteryCollection : public TQObject {
Q_OBJECT
+ TQ_OBJECT
private:
//! contains the udis of the batteries of this collection
- QStringList udis;
+ TQStringList udis;
//! contains the rate unit
- QString present_rate_unit;
+ TQString present_rate_unit;
//! Roletype of battery
/*!
@@ -160,13 +161,13 @@ public:
// functions
//! refresh the information of the collection from the given batterylist
- bool refreshInfo(QPtrList<Battery> BatteryList, bool force_level_recheck = false);
+ bool refreshInfo(TQPtrList<Battery> BatteryList, bool force_level_recheck = false);
//! check if this collection already handle a special battery/udi
- bool isBatteryHandled(QString udi);
+ bool isBatteryHandled(TQString udi);
// get internals
//! get the unit for charge level stuff
- QString getChargeLevelUnit() const;
+ TQString getChargeLevelUnit() const;
//! get the cumulative remaining time
int getRemainingMinutes() const;