00001
00002 #ifndef SENSORSENSOR_H
00003 #define SENSORSENSOR_H
00004
00005 #include <qstring.h>
00006 #include <qtextcodec.h>
00007 #include <qmap.h>
00008 #include <qstringlist.h>
00009 #include <qregexp.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 );
00025
00026 ~SensorSensor();
00027
00028 void update();
00029
00030
00031 private:
00032 KShellProcess ksp;
00033
00034 QMap<QString,QString> sensorMap;
00035 QString sensorResult;
00036
00037 private slots:
00038 void receivedStdout(KProcess *, char *buffer, int);
00039 void processExited(KProcess *);
00040
00041
00042
00043 };
00044
00045 #endif