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