code_app/modules/saneui/dialog_device_select.h

35 lines
616 B
C++

#ifndef DIALOG_DEVICE_SELECT_H
#define DIALOG_DEVICE_SELECT_H
#include "base/HGDef.h"
#include "sane/sane_ex.h"
#include <QDialog>
#include <string>
namespace Ui {
class Dialog_Device_Select;
}
class Dialog_Device_Select : public QDialog
{
Q_OBJECT
public:
Dialog_Device_Select(SANEAPI* saneApi, QWidget *parent = nullptr);
~Dialog_Device_Select();
SANE_Handle GetDevHandle();
std::string GetDevName();
private slots:
void on_buttonBox_accepted();
private:
Ui::Dialog_Device_Select *ui;
SANE_Handle m_devHandle;
std::string m_devName;
};
#endif // DIALOG_DEVICE_SELECT_H