ScannerManager.cpp 792 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #include "stdafx.h"
  2. #include "ScannerManager.h"
  3. #include "SeparateThreadTwainFeeder.h"
  4. CScannerManager::CScannerManager():twainManager(CSeparateThreadTwainFeeder::Get())
  5. {
  6. }
  7. CScannerManager::~CScannerManager()
  8. {
  9. }
  10. int CScannerManager::GetScannerList(vector<SCANNER_INFO> & scannerList)
  11. {
  12. return twainManager->GetScannerList(scannerList);
  13. }
  14. int CScannerManager::GetDefaultScannerInfo(SCANNER_INFO &scannerInfo)
  15. {
  16. return twainManager->GetDefaultScannerInfo(scannerInfo);
  17. }
  18. int CScannerManager::ConnectScanner(const int nIndex)
  19. {
  20. return twainManager->ConnectScanner(nIndex);
  21. }
  22. int CScannerManager::ShowScannerSetting(const unsigned int nId)
  23. {
  24. return twainManager->ShowScannerSetting(nId);
  25. }
  26. int CScannerManager::DisconnectScanner()
  27. {
  28. return twainManager->DisconnectScanner();
  29. }