summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/sensorsensor.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit2bda8f7717adf28da4af0d34fb82f63d2868c31d (patch)
tree8d927b7b47a90c4adb646482a52613f58acd6f8c /superkaramba/src/sensorsensor.h
downloadtdeutils-2bda8f7717adf28da4af0d34fb82f63d2868c31d.tar.gz
tdeutils-2bda8f7717adf28da4af0d34fb82f63d2868c31d.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'superkaramba/src/sensorsensor.h')
-rw-r--r--superkaramba/src/sensorsensor.h49
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