OpenHantek
Loading...
Searching...
No Matches
newdevicemodelfromexisting.h
1// SPDX-License-Identifier: GPL-2.0+
2#pragma once
3
4#include <QDialog>
5#include <memory>
6#include "ui_newdevicemodelfromexisting.h"
7#include "rawdevicelistentry.h"
8
9namespace Ui {
11}
12
13struct libusb_context;
14
15class NewDeviceModelFromExisting : public QDialog
16{
17 Q_OBJECT
18
19public:
20 explicit NewDeviceModelFromExisting(QWidget *parent = 0);
21 void setUSBcontext(libusb_context* context);
22 RawDeviceListEntry* getSelectedEntry();
23private:
24 std::unique_ptr<Ui::NewDeviceModelFromExisting> ui;
25 libusb_context* context = nullptr;
26
27 // QDialog interface
28public slots:
29 virtual void accept() override;
30};
Definition newdevicemodelfromexisting.h:16
Definition rawdevicelistentry.h:10