QespTest.h 617 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
/* qesptest.h
**************************************/
#ifndef _QESPTEST_H_
#define _QESPTEST_H_

#include <QWidget>

class QLineEdit;
class QTextEdit;
class QextSerialPort;
class QSpinBox;

class QespTest :  public QWidget
{
    Q_OBJECT
public:
    QespTest(QWidget *parent=0);

    virtual ~QespTest();

private:
    QLineEdit *message;
    QSpinBox *delaySpinBox;
    QTextEdit *received_msg;
    QextSerialPort *port;

private slots:
    void transmitMsg();
    void receiveMsg();
    void appendCR();
    void appendLF();
    void closePort();
    void openPort();
};

#endif