/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This file is part of guh. * * * * Guh is free software: you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation, version 2 of the License. * * * * Guh is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with guh. If not, see . * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #ifndef MAXDEVICE_H #define MAXDEVICE_H #include #include "room.h" class MaxDevice : public QObject { Q_OBJECT public: explicit MaxDevice(QObject *parent = 0); enum MaxDeviceType{ DeviceCube = 0, DeviceRadiatorThermostat = 1, DeviceRadiatorThermostatPlus = 2, DeviceWallThermostat = 3, DeviceWindowContact = 4, DeviceEcoButton = 5 }; int deviceType(); void setDeviceType(int deviceType); QString deviceTypeString(); QByteArray rfAddress(); void setRfAddress(QByteArray rfAddress); QString serialNumber(); void setSerialNumber(QString serialNumber); QString deviceName(); void setDeviceName(QString deviceName); int roomId(); void setRoomId(int roomId); Room *room(); void setRoom(Room *room); private: int m_deviceType; QString m_deviceTypeString; QByteArray m_rfAddress; QString m_serialNumber; QString m_deviceName; int m_roomId; Room *m_room; bool m_batteryOk; signals: public slots: }; #endif // MAXDEVICE_H