forked from tperamun2/Phillips-Hue-Lighting-System
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLight.hpp
51 lines (44 loc) · 1.12 KB
/
Light.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* @brief The header for the light class
* @author Gurkiran Tatla
* @author Jake Schindler
* @author Justine Kim
* @author Paul Salvatore
* @author Timal Peramune
*/
#ifndef LIGHT_H_
#define LIGHT_H_
#include <string>
#include <Wt/WPushButton>
#include <Wt/Json/Value>
#include <Wt/Json/Array>
#include <Wt/Json/Object>
#include <Wt/Json/Serializer>
#include <Wt/Json/Parser>
#include <Wt/Http/Message>
#include <Wt/Http/Client>
#include <Wt/Http/Request>
#include <Wt/WLineEdit>
#include "State.hpp"
#include "HomePage.hpp"
class State;
class HomePage;
class Light : public Wt::WPushButton {
std::string id;
std::string name;
State *state;
HomePage *page;
public:
Light(std::string id, std::string name, HomePage *page);
Light(std::string id,std::string name, State *state, HomePage *page);
Light(std::string id,std::string name, HomePage *page, State *state);
~Light();
State* getState();
void setName(std::string name, std::string ip, std::string port);
std::string getName();
std::string getID();
void turnONorOFF();
void setHue(long long hue);
void setBrightness(int brightness);
};
#endif