RadioTuner/client.h

21 lines
403 B
C
Raw Normal View History

#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