1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #include "stdafx.h"
- #include "ScannerManager.h"
- #include "SeparateThreadTwainFeeder.h"
- CScannerManager::CScannerManager():twainManager(CSeparateThreadTwainFeeder::Get())
- {
- }
- CScannerManager::~CScannerManager()
- {
- }
- int CScannerManager::GetScannerList(vector<SCANNER_INFO> & scannerList)
- {
- return twainManager->GetScannerList(scannerList);
- }
- int CScannerManager::GetDefaultScannerInfo(SCANNER_INFO &scannerInfo)
- {
- return twainManager->GetDefaultScannerInfo(scannerInfo);
- }
- int CScannerManager::ConnectScanner(const int nIndex)
- {
- return twainManager->ConnectScanner(nIndex);
- }
- int CScannerManager::ShowScannerSetting(const unsigned int nId)
- {
- return twainManager->ShowScannerSetting(nId);
- }
- int CScannerManager::DisconnectScanner()
- {
- return twainManager->DisconnectScanner();
- }
|