newrpl/usbselector.h

42 lines
718 B
C++

#ifndef USBSELECTOR_H
#define USBSELECTOR_H
#include <QDialog>
namespace Ui {
class USBSelector;
}
class USBSelector : public QDialog
{
Q_OBJECT
QTimer *tmr;
QString SelectedDevicePath;
QString SelectedDeviceName;
int numberoftries;
public:
void RefreshList();
QString& getSelectedDevicePath();
QString& getSelectedDeviceName();
explicit USBSelector(QWidget *parent = 0);
~USBSelector();
private slots:
void on_USBtreeWidget_itemSelectionChanged();
void on_USBSelector_accepted();
void on_USBSelector_rejected();
void refresh();
void reconnect();
void on_updateFirmware_clicked();
private:
Ui::USBSelector *ui;
};
#endif // USBSELECTOR_H