diff --git a/include/com.h b/include/com.h index 0cee78d..379d739 100644 --- a/include/com.h +++ b/include/com.h @@ -7,6 +7,7 @@ //#include #include #include +#include #include "tslib.h" #include "controlBus.h" #include "interfaces.h" @@ -32,6 +33,10 @@ class T_com : public QObject //, public QPlainTextEdit // QSerialPort *CatSerial = nullptr; QSerialPort *CatSerial; + QVector readCmds; // list of active commands sent to DC + + + //char oeffneSerialPort(); char open_Serial_Port(); void closeSerialPort(); @@ -61,6 +66,9 @@ public: bool readFromSerial(QByteArray &data, uint16_t &sendLength); // retval: true: data available + QVector &getReadCmds() { return readCmds; } + QVector const &getReadCmds() const { return readCmds; } + /* uint8_t getAllPortPins(void); // rs232pins: all signals bitwise coded in one byte: