added optional QT5 support - LedDevicePhilipsHue needs proper fixes

Former-commit-id: 7f0971ccda221933da4be836628532e7cfc7c085
This commit is contained in:
frostworx
2016-01-06 17:31:23 +01:00
parent d5529e86df
commit defe217c89
24 changed files with 210 additions and 9 deletions

View File

@@ -4,11 +4,14 @@
#include <string>
// Qt includes
#ifdef ENABLE_QT5
#include <QNetworkAccessManager>
#else
#include <QObject>
#include <QString>
#include <QHttp>
#include <QTimer>
#endif
// Leddevice includes
#include <leddevice/LedDevice.h>
@@ -165,9 +168,14 @@ private:
/// User name for the API ("newdeveloper")
QString username;
/// Qhttp object for sending requests.
#ifdef ENABLE_QT5
// TODO QNetworkAcessManager stuff
#else
QHttp* http;
/// Use timer to reset lights when we got into "GRABBINGMODE_OFF".
QTimer timer;
#endif
///
bool switchOffOnBlack;
/// Transition time in multiples of 100 ms.