Browse Source

Create Project Template

test
nasicurious 3 years ago
parent
commit
12f6380772
  1. 10
      Servo/Servo.pro
  2. 17
      Servo/include/ModbusMaster.h
  3. 17
      Servo/include/ModbusWrapper.h
  4. 11
      Servo/include/ServoController.h
  5. 6
      Servo/src/ModbusMaster.cpp
  6. 5
      Servo/src/ModbusWrapper.cpp
  7. 5
      Servo/src/ServoController.cpp

10
Servo/Servo.pro

@ -18,11 +18,15 @@ DEFINES += QT_DEPRECATED_WARNINGS
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \ SOURCES += \
Servo.cpp $$files(*.cpp, true) \ \
HEADERS += \ HEADERS += \
Servo_global.h \ $$files(*.h, true) \ \
Servo.h
INCLUDEPATH += $$PWD/include
# Default rules for deployment. # Default rules for deployment.
unix { unix {

17
Servo/include/ModbusMaster.h

@ -0,0 +1,17 @@
#ifndef MODBUSMASTER_H
#define MODBUSMASTER_H
#include <QObject>
class ModbusMaster : public QObject
{
Q_OBJECT
public:
explicit ModbusMaster(QObject *parent = nullptr);
signals:
public slots:
};
#endif // MODBUSMASTER_H

17
Servo/include/ModbusWrapper.h

@ -0,0 +1,17 @@
#ifndef MODBUSWRAPPER_H
#define MODBUSWRAPPER_H
#include <QObject>
class ModbusWrapper : public QObject
{
Q_OBJECT
public:
explicit ModbusWrapper(QObject *parent = nullptr);
signals:
public slots:
};
#endif // MODBUSWRAPPER_H

11
Servo/include/ServoController.h

@ -0,0 +1,11 @@
#ifndef SERVOCONTROLLER_H
#define SERVOCONTROLLER_H
class ServoController
{
public:
ServoController();
};
#endif // SERVOCONTROLLER_H

6
Servo/src/ModbusMaster.cpp

@ -0,0 +1,6 @@
#include "../include/ModbusMaster.h"
ModbusMaster::ModbusMaster(QObject *parent) : QObject(parent)
{
}

5
Servo/src/ModbusWrapper.cpp

@ -0,0 +1,5 @@
#include "ModbusWrapper.h"
ModbusWrapper::ModbusWrapper(QObject* parent) : QObject(parent)
{
}

5
Servo/src/ServoController.cpp

@ -0,0 +1,5 @@
#include "ServoController.h"
ServoController::ServoController()
{
}
Loading…
Cancel
Save