Files
TS_WIFILED/src/ledhandler.h
2020-04-26 16:25:58 +02:00

36 lines
631 B
C++

#ifndef LEDHANDLER_H
#define LEDHANDLER_H
#include <QUdpSocket>
#include <ts3_functions.h>
class LEDHandler : public QObject
{
public:
QString cURL = "10.0.0.222";
int cPORT = 21324;
int cLEDNUM = 90;
LEDHandler(QUdpSocket* sock, TS3Functions ts3Functions);
void talkingEnded();
void talkingStarted();
void poked();
void clientMoved();
public slots:
void connected();
void disconnected();
void hostFound();
private:
QUdpSocket* mSock;
TS3Functions mTs3Functions;
int mBrightness = 80;
void sendColor(int R, int G, int B, int W, int t);
};
#endif // LEDHANDLER_H