RadioTuner/client.h
Brandon Rozek 86b0d07829 Basic Implementation of Radio Server/Client
Client written in QT and communicates to SDR server over TCP sockets.

Currently getting and setting frequencies is supported
2019-05-14 23:09:55 -04:00

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