shun-iwasawa 31accf
#pragma once
shun-iwasawa 31accf
shun-iwasawa 31accf
#ifndef STOPMOTIONSERIAL_H
shun-iwasawa 31accf
#define STOPMOTIONSERIAL_H
shun-iwasawa 31accf
shun-iwasawa 31accf
#include <qobject></qobject>
shun-iwasawa 31accf
shun-iwasawa 31accf
class QSerialPort;
shun-iwasawa 31accf
shun-iwasawa 31accf
//=============================================================================
shun-iwasawa 31accf
// StopMotionSerial
shun-iwasawa 31accf
//-----------------------------------------------------------------------------
shun-iwasawa 31accf
shun-iwasawa 31accf
class StopMotionSerial : public QObject {
shun-iwasawa 31accf
  Q_OBJECT
shun-iwasawa 31accf
shun-iwasawa 31accf
public:
shun-iwasawa 31accf
  StopMotionSerial();
shun-iwasawa 31accf
  ~StopMotionSerial();
shun-iwasawa 31accf
shun-iwasawa 31accf
  QStringList m_controlBaudRates, m_serialDevices;
shun-iwasawa 31accf
shun-iwasawa 31accf
  QSerialPort* m_serialPort;
shun-iwasawa 31accf
shun-iwasawa 31accf
  // motion control
shun-iwasawa 31accf
  QStringList getAvailableSerialPorts();
shun-iwasawa 31accf
  bool setSerialPort(QString port);
shun-iwasawa 31accf
  void sendSerialData();
shun-iwasawa 31accf
};
shun-iwasawa 31accf
#endif  // STOPMOTIONSERIAL_H