diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 09:59:06 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 09:59:06 -0500 |
commit | 24857cad8e92c27bc7d7377549ae887adbeccc58 (patch) | |
tree | e8aa2577506c17c68286ec1b65ae31b89ea0556b /src/sensorslist.h | |
parent | ea3a9effca9bebfe18bfb7546da619ecbbb121f3 (diff) | |
download | ksensors-24857cad8e92c27bc7d7377549ae887adbeccc58.tar.gz ksensors-24857cad8e92c27bc7d7377549ae887adbeccc58.zip |
Convert to TDE R14 API
Diffstat (limited to 'src/sensorslist.h')
-rw-r--r-- | src/sensorslist.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/sensorslist.h b/src/sensorslist.h index a2dc7ec..49a0871 100644 --- a/src/sensorslist.h +++ b/src/sensorslist.h @@ -18,10 +18,10 @@ #ifndef SENSORSLIST_H #define SENSORSLIST_H -#include <qobject.h> -#include <qobjectlist.h> -#include <kconfig.h> -#include <qstringlist.h> +#include <ntqobject.h> +#include <ntqobjectlist.h> +#include <tdeconfig.h> +#include <ntqstringlist.h> #include <sensor.h> @@ -29,21 +29,21 @@ *@author Miguel Novas */ -class SensorsList : public QObject { +class SensorsList : public TQObject { Q_OBJECT friend class Sensor; public: - SensorsList(QObject *parent=0, const char *name=0); + SensorsList(TQObject *parent=0, const char *name=0); ~SensorsList(); void setMonitorized(bool enable); - const QString &getDescription() { return description; }; - QObjectList *getSensors() { return (QObjectList *)children(); }; - Sensor *getSensor(int index) { return children() ? (Sensor *)((QObjectList *)children())->at(index) : 0; } + const TQString &getDescription() { return description; }; + TQObjectList *getSensors() { return (TQObjectList *)children(); }; + Sensor *getSensor(int index) { return children() ? (Sensor *)((TQObjectList *)children())->at(index) : 0; } Sensor *getSensor(const char *name) { return (Sensor *)child(name); } int count() { return children() ? children()->count() : 0; } @@ -73,20 +73,20 @@ protected slots: protected: - void setDescription(const QString &name) { description= name; }; + void setDescription(const TQString &name) { description= name; }; void setClass(Sensor::SensorClass newClass) { clas= newClass; } - void childEvent ( QChildEvent *e ); + void childEvent ( TQChildEvent *e ); private: - QString description; + TQString description; Sensor::SensorClass clas; bool monitorized; int updateInterval; - KConfig *ksConfig; + TDEConfig *ksConfig; Sensor::TempScale tempScale; - void timerEvent( QTimerEvent * ); + void timerEvent( TQTimerEvent * ); }; #endif |