/** Closes the Data Source Manager */ void KSaneWidgetPrivate::CloseDSM() { if(m_hTwainDLL && m_pDSMProc && m_bDSMOpen) { CloseDS(); CallTwainProc(&m_AppId, NULL, DG_CONTROL, DAT_PARENT, MSG_CLOSEDSM, (TW_MEMREF)&m_hMessageWnd); m_bDSMOpen = false; } }
/* Closes the Data Source Manager */ void CTwain::CloseDSM() { if(DSMOpen()) { CloseDS(); CallTwainProc(&m_AppId,NULL,DG_CONTROL,DAT_PARENT,MSG_CLOSEDSM,(TW_MEMREF)&m_hMessageWnd); m_bDSMOpen = FALSE; } }
/* Called by ProcessMessage to Translate a TWAIN message */ void CTwain::TranslateMessage(TW_EVENT& twEvent) { switch(twEvent.TWMessage) { case MSG_XFERREADY: TransferImage(); break; case MSG_CLOSEDSREQ: if(CanClose()) { CloseDS(); } break; } }
/** Called by ProcessMessage to Translate a TWAIN message */ void KSaneWidgetPrivate::TranslateMessage(TW_EVENT& twEvent) { switch(twEvent.TWMessage) { case MSG_XFERREADY: //qDebug() << "MSG_XFERREADY"; TransferImage(); break; case MSG_CLOSEDSREQ: //qDebug() << "MSG_CLOSEDSREQ"; CloseDS(); break; } }
/* Called by ProcessMessage to Translate a TWAIN message */ void CTwain::TranslateMessage(TW_EVENT& twEvent) { switch(twEvent.TWMessage) { case MSG_XFERREADY: TRACE("********** TranslateMessage --> MSG_XFERREADY ************\n"); TransferImage(); break; case MSG_CLOSEDSREQ: TRACE("********** TranslateMessage --> MSG_CLOSEDSREQ ************\n"); if(CanClose()) { CloseDS(); } ScanDone(-5); break; default: TRACE("TranslateMessage --> default, twEvent.TWMessage = %d.\n", twEvent.TWMessage); break; } }
/* Called by ProcessMessage to Translate a TWAIN message */ void CTwain::TranslateMessage(TW_EVENT& twEvent) { switch(twEvent.TWMessage) { case MSG_XFERREADY: TransferImage(); break; case MSG_CLOSEDSREQ: if(CanClose()) { CloseDS(); } break; // No message from the Source to the App break; // possible new message case MSG_NULL: default: break; } }