Added config options for username and transitiontime

Former-commit-id: 2ae179c670fda838115d985f40d970e10ef002ef
This commit is contained in:
Tim Niggemann
2015-02-01 15:29:40 +01:00
parent d106a9645c
commit 9d506b888d
3 changed files with 21 additions and 7 deletions

View File

@@ -125,9 +125,14 @@ public:
///
/// @param output the ip address of the bridge
///
/// @param switchOffOnBlack kill lights for black
/// @param username username of the hue bridge (default: newdeveloper)
///
LedDevicePhilipsHue(const std::string& output, bool switchOffOnBlack);
/// @param switchOffOnBlack kill lights for black (default: false)
///
/// @param transitiontime the time duration a light change takes in multiples of 100 ms (default: 400 ms).
///
LedDevicePhilipsHue(const std::string& output, const std::string& username = "newdeveloper", bool switchOffOnBlack =
false, int transitiontime = 4);
///
/// Destructor of this device
@@ -163,6 +168,9 @@ private:
QTimer timer;
///
bool switchOffOnBlack;
/// Transition time in multiples of 100 ms.
/// The default of the Hue lights will be 400 ms, but we want to have it snapier
int transitiontime;
///
/// Sends a HTTP GET request (blocking).