Subversion Repositories Code-Repo

Rev

Rev 354 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 354 Rev 362
Line 11... Line 11...
11
        SerialWidget(QWidget *parent = 0);
11
        SerialWidget(QWidget *parent = 0);
12
        ~SerialWidget();
12
        ~SerialWidget();
13
 
13
 
14
    public slots:
14
    public slots:
15
        // Inbound from SerialHelper
15
        // Inbound from SerialHelper
16
        void Serial_UpdateParameters(QStringList ports, QStringList speeds, QStringList dataBits,
16
        void UpdateParameters(QStringList ports, QStringList speeds, QStringList dataBits,
17
                                     QStringList stopBits, QStringList parity, QStringList flowControl);
17
                              QStringList stopBits, QStringList parity, QStringList flowControl);
18
 
18
 
19
        // Local GUI processing
19
        // Local GUI processing
20
        void Serial_ConnectToggleBtn(void);
20
        void ConnectToggleBtn(void);
21
        void Serial_LocalConnected(void);
21
        void LocalConnected(void);
22
        void Serial_LocalDisconnected(void);
22
        void LocalDisconnected(void);
23
 
23
 
24
    signals:
24
    signals:
25
        // Outbound to SerialHelper
25
        // Outbound to SerialHelper
26
        void Serial_QueryParameters(void);
26
        void QueryParameters(void);
27
        void Serial_Connect(QString port, QString speed, QString dataBits,
27
        void Connect(QString port, QString speed, QString dataBits,
28
                            QString stopBits, QString parity, QString flowControl);
28
                     QString stopBits, QString parity, QString flowControl);
29
        void Serial_Disconnect(void);
29
        void Disconnect(void);
30
        void Serial_TransmitByteArray(QByteArray data);
30
        void TransmitByteArray(QByteArray data);
31
 
31
 
32
        // Outbound to MainWindow
32
        // Outbound to MainWindow
33
        void Serial_ReceivedByte(char byte);
33
        void ReceivedByte(QByteArray data);
34
        void Serial_Connected(void);
34
        void Connected(void);
35
        void Serial_Disconnected(void);
35
        void Disconnected(void);
36
        void UpdateStatus(QString string);
36
        void UpdateStatus(QString string);
37
 
37
 
38
    private:
38
    private:
39
        SerialHelper *serialHelper;
39
        SerialHelper *serialHelper;
40
        QThread *serialThread;
40
        QThread *serialThread;
41
 
41
 
42
        QPushButton *btnSerialConnect;
42
        QPushButton *btnConnect;
43
        QPushButton *btnSerialRefresh;
43
        QPushButton *btnRefresh;
44
        QLabel *labelSerialPort;
44
        QLabel *labelPort;
45
        QLabel *labelSerialSpeed;
45
        QLabel *labelSpeed;
46
        QLabel *labelSerialDataBits;
46
        QLabel *labelDataBits;
47
        QLabel *labelSerialStopBits;
47
        QLabel *labelStopBits;
48
        QLabel *labelSerialParity;
48
        QLabel *labelParity;
49
        QLabel *labelSerialFlowControl;
49
        QLabel *labelFlowControl;
50
        QComboBox *cboxSerialPort;
50
        QComboBox *cboxPort;
51
        QComboBox *cboxSerialSpeed;
51
        QComboBox *cboxSpeed;
52
        QComboBox *cboxSerialDataBits;
52
        QComboBox *cboxDataBits;
53
        QComboBox *cboxSerialStopBits;
53
        QComboBox *cboxStopBits;
54
        QComboBox *cboxSerialParity;
54
        QComboBox *cboxParity;
55
        QComboBox *cboxSerialFlowControl;
55
        QComboBox *cboxFlowControl;
56
};
56
};
57
 
57
 
58
#endif // SERIALWIDGET_H
58
#endif // SERIALWIDGET_H