tahoma2d/toonz/sources/stopmotion/stopmotionserial.h

30 lines
634 B
C
Raw Normal View History

2020-04-27 16:15:39 +12:00
#pragma once
#ifndef STOPMOTIONSERIAL_H
#define STOPMOTIONSERIAL_H
#include <QObject>
class QSerialPort;
//=============================================================================
// StopMotionSerial
//-----------------------------------------------------------------------------
class StopMotionSerial : public QObject {
2020-04-27 16:19:06 +12:00
Q_OBJECT
2020-04-27 16:15:39 +12:00
public:
2020-04-27 16:19:06 +12:00
StopMotionSerial();
~StopMotionSerial();
2020-04-27 16:15:39 +12:00
2020-04-27 16:19:06 +12:00
QStringList m_controlBaudRates, m_serialDevices;
2020-04-27 16:15:39 +12:00
2020-04-27 16:19:06 +12:00
QSerialPort* m_serialPort;
2020-04-27 16:15:39 +12:00
2020-04-27 16:19:06 +12:00
// motion control
QStringList getAvailableSerialPorts();
bool setSerialPort(QString port);
void sendSerialData();
2020-04-27 16:15:39 +12:00
};
#endif // STOPMOTIONSERIAL_H