diff options
Diffstat (limited to 'superkaramba/src/sensorsensor.h')
-rw-r--r-- | superkaramba/src/sensorsensor.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/superkaramba/src/sensorsensor.h b/superkaramba/src/sensorsensor.h new file mode 100644 index 0000000..82adf10 --- /dev/null +++ b/superkaramba/src/sensorsensor.h @@ -0,0 +1,49 @@ + +#ifndef SENSORSENSOR_H +#define SENSORSENSOR_H + +#include <qstring.h> +#include <qtextcodec.h> +#include <qmap.h> +#include <qstringlist.h> +#include <qregexp.h> +#include <kprocess.h> +#include <kprocio.h> + + +#include "sensor.h" + +/** + * + * Hans Karlsson + **/ +class SensorSensor : public Sensor +{ + Q_OBJECT +public: + SensorSensor(int interval, char tempUnit); + + ~SensorSensor(); + + void update(); + + +private: + KShellProcess ksp; + QString extraParams; + + QMap<QString,QString> sensorMap; +#ifdef __FreeBSD__ + QMap<QString,QString> sensorMapBSD; +#endif + QString sensorResult; + +private slots: + void receivedStdout(KProcess *, char *buffer, int); + void processExited(KProcess *); + + + +}; + +#endif |