#ifndef DIALOG_SOURCE_SELECT_H #define DIALOG_SOURCE_SELECT_H #include #include #include #include "HGSaneUI.h" namespace Ui { class Dialog_Source_Select; } class Dialog_Source_Select : public QDialog { Q_OBJECT public: explicit Dialog_Source_Select(const char **manuNames, const char **sanePaths, QWidget *parent = 0); ~Dialog_Source_Select(); std::string GetManuName(); HGDll GetDll(); void GetSaneAPI(SANEAPI *saneAPI); private slots: void on_pushButton_OK_clicked(); void on_pushButton_Cancel_clicked(); private: HGResult FindFunctions(HGDll dll, const HGChar* saneManu, SANEAPI *saneAPI); private: Ui::Dialog_Source_Select *ui; std::vector > m_vSource; std::string m_strManuName; HGDll m_dll; SANEAPI m_saneApi; }; #endif // DIALOG_SOURCE_SELECT_H