From d12498504c279a0a85bbfb024f7903e34dbe07db Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Fri, 21 Feb 2025 07:27:00 +0100 Subject: broken img calc; change dir struct --- src/printerclient.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/printerclient.h (limited to 'src/printerclient.h') diff --git a/src/printerclient.h b/src/printerclient.h new file mode 100644 index 0000000..d1266dd --- /dev/null +++ b/src/printerclient.h @@ -0,0 +1,30 @@ +#pragma once + +#include + +#include + +class QSerialPort; + +class PrinterClient : public QObject +{ + // Q_OBJECT + +public: + explicit PrinterClient(QObject *parent = nullptr); + // ~PrinterClient() override = default; + // ~PrinterClient + + // signals: + // void newData(const QString output); + +public: + void sendCommand(const QString command); + +private: + void onReadyRead(); + void onErrorOccured(QSerialPort::SerialPortError error); + +private: + QSerialPort* m_serialPort { nullptr }; +}; -- cgit v1.2.3-70-g09d2