code_production/app/HGProductionTool/hgscanner.h

26 lines
856 B
C
Raw Normal View History

2022-12-15 06:12:53 +00:00
#pragma once
#include "sane/sane_ex.h"
#include "ui_helper.h"
#include "test_base.h"
2022-12-15 12:16:43 +00:00
2022-12-26 10:38:34 +00:00
class Form_mainInterface;
2023-01-04 06:28:44 +00:00
class Form_BurnMode;
2022-12-26 10:38:34 +00:00
2022-12-15 06:12:53 +00:00
class hgscanner :public ui_helper
{
public:
2023-01-04 06:28:44 +00:00
hgscanner(Form_mainInterface *form, Form_BurnMode *burnMode, SANE_Handle h);
2022-12-15 06:12:53 +00:00
~hgscanner();
virtual parameter* get_user_input(data_from from, value_type type, const wchar_t* title, const wchar_t* desc = NULL);
virtual void test_callback(const wchar_t* name/*test name*/, test_event ev, void* data, size_t flag);
virtual int register_sane_callback(sane_callback cb, void* param);
virtual int unregister_sane_callback(sane_callback cb);
virtual int io_control(unsigned long code, void* data, unsigned* len);
2022-12-15 12:16:43 +00:00
sane_callback cb_;
2022-12-15 06:12:53 +00:00
private:
2022-12-26 10:38:34 +00:00
class Form_mainInterface *m_interface;
2023-01-04 06:28:44 +00:00
class Form_BurnMode *m_burnMode;
2022-12-15 06:12:53 +00:00
SANE_Handle devHandle_;
};