2021-11-25 10:20:56 +01:00
|
|
|
#ifndef QT_DEVICECONFIG_HPP
|
|
|
|
|
#define QT_DEVICECONFIG_HPP
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
struct _device_;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class DeviceConfig;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class DeviceConfig : public QDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit DeviceConfig(QWidget *parent = nullptr);
|
|
|
|
|
~DeviceConfig();
|
|
|
|
|
|
2021-12-06 10:29:53 +01:00
|
|
|
static void ConfigureDevice(const _device_* device, int instance = 0);
|
2021-11-25 10:20:56 +01:00
|
|
|
static QString DeviceName(const _device_* device, const char* internalName, int bus);
|
|
|
|
|
private:
|
|
|
|
|
Ui::DeviceConfig *ui;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // QT_DEVICECONFIG_HPP
|