Proposal: final version for new CArun class

This commit is contained in:
2024-03-02 11:04:01 +01:00
parent c902bd9a54
commit 3bbd3e4e19
2 changed files with 132 additions and 147 deletions

View File

@@ -9,8 +9,19 @@
#include <QPluginLoader>
#include <QDir>
#include "plugin.h"
#include "stepList.h"
//#include "stepList.h" // define all working chain steps here
enum class SETUP_STEP {
INIT,
OPEN_SERIAL_PORT,
TEST_OPEN_PORT,
TEST_RESPONSE_REQUEST,
TEST_RESPONSE_CHECK,
SETUP_AUTOREQEUST,
CHECK_VALID_DATA
};
class CArun : public QObject
@@ -20,8 +31,7 @@ class CArun : public QObject
public:
explicit CArun(QObject *parent = nullptr);
QTimer *timerChainCtrl;
QTimer *timerVendingTimeout;
QTimer *timerChainCtrl;
char loadPlugIn(char lade1_entlade2);
@@ -31,11 +41,15 @@ private:
hwinf *HWaccess=nullptr; // global pointer to plugin-class
SETUP_STEP setupStep;
void openSerialPort();
signals:
private slots:
void chainControl();
void vendingTimeout();
};