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 TQ_OBJECT 00024 public: 00025 SensorSensor(int interval, char tempUnit); 00026 00027 ~SensorSensor(); 00028 00029 void update(); 00030 00031 00032 private: 00033 KShellProcess ksp; 00034 TQString extraParams; 00035 00036 TQMap<TQString,TQString> sensorMap; 00037 #ifdef __FreeBSD__ 00038 TQMap<TQString,TQString> sensorMapBSD; 00039 #endif 00040 TQString sensorResult; 00041 00042 private slots: 00043 void receivedStdout(KProcess *, char *buffer, int); 00044 void processExited(KProcess *); 00045 00046 00047 00048 }; 00049 00050 #endif