OpenHantek
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 
9 namespace Ui {
11 }
12 
13 struct libusb_context;
14 
15 class NewDeviceModelFromExisting : public QDialog
16 {
17  Q_OBJECT
18 
19 public:
20  explicit NewDeviceModelFromExisting(QWidget *parent = 0);
21  void setUSBcontext(libusb_context* context);
22  RawDeviceListEntry* getSelectedEntry();
23 private:
24  std::unique_ptr<Ui::NewDeviceModelFromExisting> ui;
25  libusb_context* context = nullptr;
26 
27  // QDialog interface
28 public slots:
29  virtual void accept() override;
30 };
Definition: rawdevicelistentry.h:10
Definition: mainwindow.h:16
Definition: newdevicemodelfromexisting.h:15