DCLibraries/dCArun/CArun.h

57 lines
757 B
C
Raw Normal View History

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"
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);
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
SETUP_STEP setupStep;
2024-03-02 08:36:06 +01:00
void openSerialPort();
2024-03-02 08:36:06 +01:00
signals:
private slots:
2024-03-02 08:36:06 +01:00
void chainControl();
};
#endif // CARUN_H