cleanup and made it working!
This commit is contained in:
30
src/ledhandler.h
Normal file
30
src/ledhandler.h
Normal 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
|
||||
Reference in New Issue
Block a user