2023-03-27 10:02:38 +00:00
|
|
|
#ifndef DIALOG_DEVICE_SELECT_H
|
|
|
|
#define DIALOG_DEVICE_SELECT_H
|
|
|
|
|
2023-04-04 05:18:13 +00:00
|
|
|
#include "HGSaneUI.h"
|
2023-03-27 10:02:38 +00:00
|
|
|
#include <QDialog>
|
2023-03-29 08:16:19 +00:00
|
|
|
#include <string>
|
2023-03-29 10:04:59 +00:00
|
|
|
#include <vector>
|
2023-03-27 10:02:38 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class Dialog_Device_Select;
|
|
|
|
}
|
|
|
|
|
|
|
|
class Dialog_Device_Select : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-04-03 09:13:53 +00:00
|
|
|
Dialog_Device_Select(const SANEAPI* saneApi, QWidget *parent = nullptr);
|
2023-03-27 10:02:38 +00:00
|
|
|
~Dialog_Device_Select();
|
|
|
|
|
2023-03-29 08:16:19 +00:00
|
|
|
SANE_Handle GetDevHandle();
|
|
|
|
std::string GetDevName();
|
|
|
|
|
2023-03-27 10:02:38 +00:00
|
|
|
private slots:
|
2023-03-29 10:04:59 +00:00
|
|
|
void on_pushButton_OK_clicked();
|
|
|
|
void on_pushButton_Cancel_clicked();
|
2023-03-27 10:02:38 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::Dialog_Device_Select *ui;
|
2023-03-29 08:16:19 +00:00
|
|
|
|
2023-03-29 10:04:59 +00:00
|
|
|
SANEAPI m_saneAPI;
|
2023-03-29 08:16:19 +00:00
|
|
|
SANE_Handle m_devHandle;
|
|
|
|
std::string m_devName;
|
2023-03-29 10:04:59 +00:00
|
|
|
std::vector<std::string> m_vDevName;
|
2023-03-27 10:02:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DIALOG_DEVICE_SELECT_H
|