telldus/telldus-core/service/Sensor.h
2011-05-12 14:45:23 +00:00

24 lines
445 B
C++

#ifndef SENSOR_H
#define SENSOR_H
#include "Mutex.h"
#include <string>
class Sensor : public TelldusCore::Mutex
{
public:
Sensor(const std::wstring &protocol, const std::wstring &model, int id);
~Sensor();
std::wstring protocol() const;
std::wstring model() const;
int id() const;
void setValue(const std::string &name, const std::string &value, time_t timestamp);
private:
class PrivateData;
PrivateData *d;
};
#endif // SENSOR_H