35 lines
578 B
C++
35 lines
578 B
C++
#ifndef AVRECEIVERDEVICE_H
|
|
#define AVRECEIVERDEVICE_H
|
|
|
|
#include <QTcpSocket>
|
|
|
|
#define RECEIVER_PORT 23
|
|
#define RECEIVER_IP_ADDRESS "192.168.0.104"
|
|
|
|
class CAVReceiverDevice : QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
CAVReceiverDevice();
|
|
~CAVReceiverDevice();
|
|
|
|
int ConnectToReceiver();
|
|
int DisconnectReceiver();
|
|
|
|
private:
|
|
QTcpSocket *mReceiverSocket;
|
|
int AnalyseRxData(QByteArray data);
|
|
|
|
int mReceiverVolume;
|
|
|
|
bool mIsConnected;
|
|
|
|
public slots:
|
|
void SocketConnected();
|
|
void SocketDisconnected();
|
|
void SocketRX();
|
|
};
|
|
|
|
#endif // AVRECEIVERDEVICE_H
|