2024-03-02 08:36:06 +01:00
|
|
|
#ifndef CARUN_H
|
|
|
|
#define CARUN_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QTimer>
|
|
|
|
#include <QDebug>
|
|
|
|
#include <QDateTime>
|
|
|
|
|
|
|
|
#include <QPluginLoader>
|
|
|
|
#include <QDir>
|
|
|
|
#include "plugin.h"
|
2024-03-02 11:04:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
enum class SETUP_STEP {
|
|
|
|
INIT,
|
|
|
|
OPEN_SERIAL_PORT,
|
|
|
|
TEST_OPEN_PORT,
|
|
|
|
TEST_RESPONSE_REQUEST,
|
|
|
|
TEST_RESPONSE_CHECK,
|
|
|
|
SETUP_AUTOREQEUST,
|
|
|
|
CHECK_VALID_DATA
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2024-03-02 08:36:06 +01:00
|
|
|
|
|
|
|
|
|
|
|
class CArun : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit CArun(QObject *parent = nullptr);
|
|
|
|
|
2024-03-02 11:04:01 +01:00
|
|
|
QTimer *timerChainCtrl;
|
2024-03-02 08:36:06 +01:00
|
|
|
|
|
|
|
char loadPlugIn(char lade1_entlade2);
|
|
|
|
|
|
|
|
QDir plugInDir;
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
hwinf *HWaccess=nullptr; // global pointer to plugin-class
|
|
|
|
|
2024-03-02 11:04:01 +01:00
|
|
|
SETUP_STEP setupStep;
|
2024-03-02 08:36:06 +01:00
|
|
|
|
2024-03-02 11:04:01 +01:00
|
|
|
void openSerialPort();
|
2024-03-02 08:36:06 +01:00
|
|
|
|
|
|
|
signals:
|
2024-03-02 11:04:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
private slots:
|
2024-03-02 08:36:06 +01:00
|
|
|
void chainControl();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CARUN_H
|