Commit b445d7ac authored by Langston Ball's avatar Langston Ball

ref #2794 - Motion sensor device creation.

parent 86b905a2
This diff is collapsed.
......@@ -20,14 +20,14 @@
#include "Gen_Devices/HueControllerBase.h"
//<-dceag-d-e->
#include <QObject>
#include <qjson/serializer.h>
#include <qjson/parser.h>
#include <QNetworkAccessManager>
#include <QVariant>
#include <QTimer>
#include <QUrl>
#include <huecontrollerhardware.h>
#include <huebulb.h>
#include <huemotionsensor.h>
#include <huedaynightsensor.h>
#include "../huecommand.h"
//<-dceag-decl-b->
......@@ -41,7 +41,9 @@ class HueController : public HueController_Command
public:
// Public member variables
QList<HueControllerHardware*> hueControllers;
QList<HueBulb*> hueBulbs;
QList<AbstractWirelessBulb*> hueBulbs;
QList<HueMotionSensor*> hueMotionSensors;
//<-dceag-const-b->
......@@ -59,7 +61,7 @@ public:
void initBridgeConnection();
bool findControllers();
void getScreenSaverColor();
bool setupController(int controllerIndex);
......@@ -202,8 +204,9 @@ public slots:
void processDataStore(const QByteArray data);
HueControllerHardware* getController(int index) {return hueControllers.at(index); }
void handleDeviceEvent(int whichEvent);
HueControllerHardware* getController(int index) {return hueControllers.at(index); }
void handleLightEvent(int whichEvent);
void handleMotionSensorEvent(DCE::Message * m);
private slots: