/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright (C) 2016 Simon Stürz * * * * 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 DOLLHOUSELIGHT_H #define DOLLHOUSELIGHT_H #include #include class DollhouseLight : public QObject { Q_OBJECT public: explicit DollhouseLight(QObject *parent = 0); QString name() const; void setName(const QString &name); QString connectionUuid() const; void setConnectionUuid(const QString &connectionUuid); QString hostAddress() const; void setHostAddress(const QString &address); int lightId() const; void setLightId(const int &lightId); // properties QColor color() const; void setColor(const QColor &color); int brightness() const; void setBrightness(const int &brightness); bool power() const; void setPower(const bool &power); private: QString m_name; QString m_connectionUuid; QString m_hostAddress; int m_lightId; QColor m_color; int m_brightness; bool m_power; }; #endif // DOLLHOUSELIGHT_H