38 lines
No EOL
920 B
C++
38 lines
No EOL
920 B
C++
#ifndef DEVICEEVERFLOURISH_H
|
|
#define DEVICEEVERFLOURISH_H
|
|
|
|
#include "Device.h"
|
|
#include <string>
|
|
|
|
namespace TelldusCore {
|
|
|
|
class DeviceEverflourish : public Device
|
|
{
|
|
public:
|
|
DeviceEverflourish(int id, const std::string &model, const std::string &name);
|
|
virtual int methods();
|
|
virtual std::string getProtocol() const;
|
|
virtual bool parameterMatches( const std::string &name, const std::string &value ) const;
|
|
|
|
bool setHouse(const std::string &newHouse);
|
|
bool setUnit(const std::string &newUnit);
|
|
|
|
public:
|
|
~DeviceEverflourish(void);
|
|
|
|
protected:
|
|
virtual bool setDeviceParameter(const std::string &strName, const std::string &strValue);
|
|
virtual int turnOn(void);
|
|
virtual int turnOff(void);
|
|
virtual int learn(void);
|
|
|
|
int intHouse;
|
|
int intCode;
|
|
|
|
std::string getCode(unsigned char action);
|
|
static unsigned int calculateChecksum(unsigned int x);
|
|
};
|
|
|
|
}
|
|
|
|
#endif //DEVICEEVERFLOURISH_H
|