Typica is a free program for professional coffee roasters. https://typica.us
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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_*/