summaryrefslogtreecommitdiffstats
path: root/tests/guiapp/tracedialog.h
blob: 8d5c58ad61f4dd85cee07f70168c08db48dbaac3 (plain)
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
#ifndef TRACEDIALOG_H
#define TRACEDIALOG_H

#include <QtGui/QDialog>

namespace Ui {
class TraceDialog;
}

class SerialPort;

class TraceDialog : public QDialog
{
    Q_OBJECT
public:
    explicit TraceDialog(SerialPort *port, QWidget *parent = 0);
    ~TraceDialog();

protected:
    void changeEvent(QEvent *e);

private slots:
    void printTrace(const QByteArray &data, bool directionRx);
    void procSendButtonClick();
    void procClearButtonClick();
    void procReadyRead();

private:
    Ui::TraceDialog *ui;

    SerialPort *m_port;
};

#endif // TRACEDIALOG_H