server doxygen

Add documentation to the server
This commit is contained in:
2026-02-14 14:32:37 +01:00
parent 8ef11ece30
commit 01dfb0e21d
30 changed files with 1635 additions and 22 deletions
+55 -1
View File
@@ -1,23 +1,77 @@
#pragma once
#include <QObject>
/**
* @brief Class representing a VISA interface also known as SCIPI over TCP/IP
*
*/
class Visa : public QObject
{
Q_OBJECT
public:
/**
* @brief Construct a new Visa object
*
* @param parent The parent QObject
*/
explicit Visa(QObject *parent = nullptr);
/**
* @brief Destroy the Visa object
*
*/
~Visa();
/**
* @brief Connect to a VISA device
*
* @param ip The IP address of the VISA device
* @param port The port number of the VISA device
*/
void connect(QString ip, quint16 port);
/**
* @brief Disconnect from the VISA device
*
*/
void disconnect();
/**
* @brief Check if the VISA device is connected
*
* @return true If the device is connected
* @return false If the device is not connected
*/
bool connected() const;
/**
* @brief Send data to the VISA device
*
* @param data The data to send
*/
void send(QString data);
QString querry(QString data);
/**
* @brief Query the VISA device
*
* @param data The query data
* @return QString The response from the device
*/
QString query(QString data);
signals:
/**
* @brief Signal emitted when the device is disconnected
*
*/
void s_disconnected();
/**
* @brief Signal emitted when the device is connected
*
*/
void s_connected();
/**
* @brief Signal emitted when data is ready to be read
*
* @param data The data that is ready to be read
*/
void s_data_ready(QString data);
private: