/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright (C) 2016 Simon Stürz * * * * This file is part of guh. * * * * This library is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2.1 of the License, or (at your option) any later version. * * * * This library 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 * * Lesser General Public License for more details. * * * * You should have received a copy of the GNU Lesser General Public * * License along with this library; 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