Brandon Rozek
86b0d07829
Client written in QT and communicates to SDR server over TCP sockets. Currently getting and setting frequencies is supported
20 lines
403 B
C++
20 lines
403 B
C++
#ifndef CLIENT_H
|
|
#define CLIENT_H
|
|
|
|
#include <QObject>
|
|
#include <QTcpSocket>
|
|
|
|
class Client : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
explicit Client(QObject *parent = nullptr);
|
|
~Client();
|
|
void send(QString data);
|
|
QString recv(void);
|
|
Q_INVOKABLE void setFrequency(double freq);
|
|
Q_INVOKABLE double getFrequency(void);
|
|
private:
|
|
QTcpSocket *socket = nullptr;
|
|
};
|
|
|
|
#endif // CLIENT_H
|