Renamed lamp to light to match HUE api convention.

Former-commit-id: f9b37989291a32162a41a7549fe4b050b79daba2
This commit is contained in:
Tim Niggemann
2015-03-03 15:46:53 +01:00
parent ecea6e55ea
commit b2b4e17bb8
2 changed files with 20 additions and 20 deletions

View File

@@ -37,7 +37,7 @@ struct CiColorTriangle {
/**
* Simple class to hold the id, the latest color, the color space and the original state.
*/
class PhilipsHueLamp {
class PhilipsHueLight {
public:
unsigned int id;
CiColor black;
@@ -46,7 +46,7 @@ public:
QString originalState;
///
/// Constructs the lamp.
/// Constructs the light.
///
/// @param id the light id
///
@@ -54,7 +54,7 @@ public:
///
/// @param modelId the model id of the hue lamp which is used to determine the color space
///
PhilipsHueLamp(unsigned int id, QString originalState, QString modelId);
PhilipsHueLight(unsigned int id, QString originalState, QString modelId);
///
/// Converts an RGB color to the Hue xy color space and brightness.
@@ -159,7 +159,7 @@ private slots:
private:
/// Array to save the lamps.
std::vector<PhilipsHueLamp> lamps;
std::vector<PhilipsHueLight> lights;
/// Ip address of the bridge
QString host;
/// User name for the API ("newdeveloper")