Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef TUSBSCANNER_IO_H
Toshihiro Shimizu 890ddd
#define TUSBSCANNER_IO_H
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "TScannerIO.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
class TUSBScannerIOPD;
Toshihiro Shimizu 890ddd
Shinya Kitaoka d1f6c4
class TUSBScannerIO final : public TScannerIO {
Shinya Kitaoka 120a6e
  TUSBScannerIOPD *m_data;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  TUSBScannerIO();
Shinya Kitaoka 473e70
  bool open() override;
Shinya Kitaoka 473e70
  void close() override;
Shinya Kitaoka 473e70
  int receive(unsigned char *buffer, int size) override;
Shinya Kitaoka 473e70
  int send(unsigned char *buffer, int size) override;
Shinya Kitaoka 473e70
  void trace(bool on) override;
Shinya Kitaoka 120a6e
  ~TUSBScannerIO();
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif