36 lines
631 B
C++
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
|