mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
Add VISA lib
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#ifndef VISA_HPP
|
||||
#define VISA_HPP
|
||||
|
||||
#include "tcp_client.hpp"
|
||||
#include <QObject>
|
||||
|
||||
class Visa : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit Visa(QObject *parent = nullptr);
|
||||
~Visa();
|
||||
void connect(QString ip, quint16 port);
|
||||
void disconnect();
|
||||
|
||||
bool connected() const;
|
||||
|
||||
void send(QString data);
|
||||
QString querry(QString data);
|
||||
|
||||
signals:
|
||||
void s_disconnected();
|
||||
void s_connected();
|
||||
|
||||
private:
|
||||
Tcp_client m_client;
|
||||
QString m_ip;
|
||||
quint16 m_port;
|
||||
bool m_connected;
|
||||
bool m_reconnect;
|
||||
bool m_data_ready;
|
||||
QString m_data;
|
||||
};
|
||||
|
||||
#endif // VISA_HPP
|
||||
Reference in New Issue
Block a user