|
OpenHantek
|
#include <selectsupporteddevice.h>
Public Member Functions | |
| SelectSupportedDevice (QWidget *parent=nullptr) | |
| std::unique_ptr< USBDevice > | showSelectDeviceModal (libusb_context *context) |
| void | showLibUSBFailedDialogModel (int error) |
Private Member Functions | |
| void | updateDeviceList () |
| void | updateSupportedDevices () |
Private Attributes | |
| std::unique_ptr< Ui::SelectSupportedDevice > | ui |
| UniqueUSBid | selectedDevice = 0 |
Offers the user a device selection dialog. If you call any of the -Modal methods, the method will block and show a dialog for selection or for a usb error message. The method returns as soon as the user closes the dialog.
An example to get a user selected device: std::unique_ptr<USBDevice> device = SelectDevice().showSelectDeviceModal(context);
|
explicit |
| void SelectSupportedDevice::showLibUSBFailedDialogModel | ( | int | error | ) |
| std::unique_ptr< USBDevice > SelectSupportedDevice::showSelectDeviceModal | ( | libusb_context * | context | ) |
|
private |
|
private |
|
private |
|
private |