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.
45 lines
906 B
45 lines
906 B
#ifndef DIALOG_H |
|
#define DIALOG_H |
|
|
|
#include <QDialog> |
|
|
|
namespace Ui { |
|
class Dialog; |
|
} |
|
class QTimer; |
|
class QextSerialPort; |
|
class QextSerialEnumerator; |
|
|
|
class Dialog : public QDialog |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
explicit Dialog(QWidget *parent = 0); |
|
~Dialog(); |
|
|
|
protected: |
|
void changeEvent(QEvent *e); |
|
|
|
private Q_SLOTS: |
|
void onPortNameChanged(const QString &name); |
|
void onBaudRateChanged(int idx); |
|
void onParityChanged(int idx); |
|
void onDataBitsChanged(int idx); |
|
void onStopBitsChanged(int idx); |
|
void onQueryModeChanged(int idx); |
|
void onTimeoutChanged(int val); |
|
void onOpenCloseButtonClicked(); |
|
void onSendButtonClicked(); |
|
void onReadyRead(); |
|
|
|
void onPortAddedOrRemoved(); |
|
|
|
private: |
|
Ui::Dialog *ui; |
|
QTimer *timer; |
|
QextSerialPort *port; |
|
QextSerialEnumerator *enumerator; |
|
}; |
|
|
|
#endif // DIALOG_H
|
|
|