You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdeutils/superkaramba/src/sensorsensor.h

51 lines
759 B

#ifndef SENSORSENSOR_H
#define SENSORSENSOR_H
#include <tqstring.h>
#include <tqtextcodec.h>
#include <tqmap.h>
#include <tqstringlist.h>
#include <tqregexp.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;
TQString extraParams;
TQMap<TQString,TQString> sensorMap;
#if defined __FreeBSD__ || defined(Q_OS_NETBSD)
TQMap<TQString,TQString> sensorMapBSD;
#endif
TQString sensorResult;
private slots:
void receivedStdout(TDEProcess *, char *buffer, int);
void processExited(TDEProcess *);
};
#endif