mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
added optional QT5 support - LedDevicePhilipsHue needs proper fixes
Former-commit-id: 7f0971ccda221933da4be836628532e7cfc7c085
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user