82 lines
1.2 KiB
C++
82 lines
1.2 KiB
C++
#include "dollhouselight.h"
|
|
|
|
DollhouseLight::DollhouseLight(QObject *parent) :
|
|
QObject(parent),
|
|
m_color(QColor("#fff30a")),
|
|
m_brightness(100),
|
|
m_power(false)
|
|
{
|
|
|
|
}
|
|
|
|
QString DollhouseLight::name() const
|
|
{
|
|
return m_name;
|
|
}
|
|
|
|
void DollhouseLight::setName(const QString &name)
|
|
{
|
|
m_name = name;
|
|
}
|
|
|
|
QString DollhouseLight::connectionUuid() const
|
|
{
|
|
return m_connectionUuid;
|
|
}
|
|
|
|
void DollhouseLight::setConnectionUuid(const QString &connectionUuid)
|
|
{
|
|
m_connectionUuid = connectionUuid;
|
|
}
|
|
|
|
QString DollhouseLight::hostAddress() const
|
|
{
|
|
return m_hostAddress;
|
|
}
|
|
|
|
void DollhouseLight::setHostAddress(const QString &address)
|
|
{
|
|
m_hostAddress = address;
|
|
}
|
|
|
|
int DollhouseLight::lightId() const
|
|
{
|
|
return m_lightId;
|
|
}
|
|
|
|
void DollhouseLight::setLightId(const int &lightId)
|
|
{
|
|
m_lightId = lightId;
|
|
}
|
|
|
|
QColor DollhouseLight::color() const
|
|
{
|
|
return m_color;
|
|
}
|
|
|
|
void DollhouseLight::setColor(const QColor &color)
|
|
{
|
|
m_color = color;
|
|
}
|
|
|
|
int DollhouseLight::brightness() const
|
|
{
|
|
return m_brightness;
|
|
}
|
|
|
|
void DollhouseLight::setBrightness(const int &brightness)
|
|
{
|
|
m_brightness = brightness;
|
|
}
|
|
|
|
bool DollhouseLight::power() const
|
|
{
|
|
return m_power;
|
|
}
|
|
|
|
void DollhouseLight::setPower(const bool &power)
|
|
{
|
|
m_power = power;
|
|
}
|
|
|