Typica is a free program for professional coffee roasters. https://typica.us
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PortListener.h 344B

1234567891011121314151617181920212223242526
  1. #ifndef PORTLISTENER_H_
  2. #define PORTLISTENER_H_
  3. #include <QObject>
  4. #include "qextserialport.h"
  5. class PortListener : public QObject
  6. {
  7. Q_OBJECT
  8. public:
  9. PortListener(const QString & portName);
  10. private:
  11. QextSerialPort *port;
  12. private slots:
  13. void onReadyRead();
  14. void onDsrChanged(bool status);
  15. };
  16. #endif /*PORTLISTENER_H_*/