superkaramba
sensorsensor.h
00001
00002 #ifndef SENSORSENSOR_H
00003 #define SENSORSENSOR_H
00004
00005 #include <tqstring.h>
00006 #include <tqtextcodec.h>
00007 #include <tqmap.h>
00008 #include <tqstringlist.h>
00009 #include <tqregexp.h>
00010 #include <kprocess.h>
00011 #include <kprocio.h>
00012
00013
00014 #include "sensor.h"
00015
00020 class SensorSensor : public Sensor
00021 {
00022 Q_OBJECT
00023 public:
00024 SensorSensor(int interval, char tempUnit);
00025
00026 ~SensorSensor();
00027
00028 void update();
00029
00030
00031 private:
00032 KShellProcess ksp;
00033 TQString extraParams;
00034
00035 TQMap<TQString,TQString> sensorMap;
00036 #ifdef __FreeBSD__
00037 TQMap<TQString,TQString> sensorMapBSD;
00038 #endif
00039 TQString sensorResult;
00040
00041 private slots:
00042 void receivedStdout(KProcess *, char *buffer, int);
00043 void processExited(KProcess *);
00044
00045
00046
00047 };
00048
00049 #endif