qt/LedOK/wProgramManager/usbdetectdialog.h

26 lines
560 B
C
Raw Normal View History

2022-01-04 18:11:48 +08:00
#ifndef USBDETECTDIALOG_H
#define USBDETECTDIALOG_H
2022-08-25 18:37:24 +08:00
#include <basedlg.h>
#include <QListWidget>
2022-01-04 18:11:48 +08:00
2022-08-25 18:37:24 +08:00
class UsbDetectDialog : public BaseDlg {
2022-01-04 18:11:48 +08:00
Q_OBJECT
public:
explicit UsbDetectDialog(QWidget *parent = nullptr);
2022-08-25 18:37:24 +08:00
~UsbDetectDialog() {if(timerId!=0) killTimer(timerId);}
protected:
void timerEvent(QTimerEvent *) override;
2022-01-04 18:11:48 +08:00
signals:
2022-08-25 18:37:24 +08:00
void acceptData(QString string1, QString string2);
2022-01-04 18:11:48 +08:00
private:
2022-08-25 18:37:24 +08:00
void detectDriver();
QListWidget *fdDrives;
QLineEdit *fdPassword;
int timerId = 0;
int lastCnt = 0;
2022-01-04 18:11:48 +08:00
};
#endif // USBDETECTDIALOG_H