cleanup and made it working!

This commit is contained in:
2020-04-18 19:57:47 +02:00
parent b3d250dd43
commit 4544a38175
6 changed files with 548 additions and 488 deletions

30
src/ledhandler.h Normal file
View File

@@ -0,0 +1,30 @@
#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;
LEDHandler(QUdpSocket* sock, TS3Functions ts3Functions);
void talkingEnded();
void talkingStarted();
public slots:
void connected();
void disconnected();
void hostFound();
private:
QUdpSocket* mSock;
TS3Functions mTs3Functions;
void sendColor(int R, int G, int B, int W, int t);
};
#endif // LEDHANDLER_H