OpenHantek
selectsupporteddevice.h
1 // SPDX-License-Identifier: GPL-2.0+
2 #pragma once
3 
4 #include "ui_selectsupporteddevice.h"
5 
6 #include <QDialog>
7 
8 #include <memory>
9 #include "usb/usbdevice.h"
10 
11 struct libusb_context;
13 
22 class SelectSupportedDevice : public QDialog
23 {
24  Q_OBJECT
25 
26 public:
27  explicit SelectSupportedDevice(QWidget *parent = 0);
28  std::unique_ptr<USBDevice> showSelectDeviceModal(libusb_context *context);
29  void showLibUSBFailedDialogModel(int error);
30 private:
31  void updateDeviceList();
32  void updateSupportedDevices();
33  std::unique_ptr<Ui::SelectSupportedDevice> ui;
34  UniqueUSBid selectedDevice = 0;
35  NewDeviceModelFromExisting* newDeviceFromExistingDialog;
36 };
Definition: selectsupporteddevice.h:22
Definition: newdevicemodelfromexisting.h:15