forked from GerhardHoffmann/DCLibraries
Proposal: final version for new CArun class
This commit is contained in:
@@ -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();
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user