mirror of
https://git.code.sf.net/p/newrpl/sources
synced 2024-11-16 19:51:25 +01:00
38 lines
634 B
C++
38 lines
634 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;
|
|
|
|
|
|
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();
|
|
|
|
private:
|
|
Ui::USBSelector *ui;
|
|
};
|
|
|
|
#endif // USBSELECTOR_H
|