OpenHantek
Loading...
Searching...
No Matches
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
11struct libusb_context;
13
22class SelectSupportedDevice : public QDialog
23{
24 Q_OBJECT
25
26public:
27 explicit SelectSupportedDevice(QWidget *parent = 0);
28 std::unique_ptr<USBDevice> showSelectDeviceModal(libusb_context *context);
29 void showLibUSBFailedDialogModel(int error);
30private:
31 void updateDeviceList();
32 void updateSupportedDevices();
33 std::unique_ptr<Ui::SelectSupportedDevice> ui;
34 UniqueUSBid selectedDevice = 0;
35 NewDeviceModelFromExisting* newDeviceFromExistingDialog;
36};
Definition newdevicemodelfromexisting.h:16
Definition selectsupporteddevice.h:23