mod_PortableScanner.cpp 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. // mod_PortableScanner.cpp : 定义 DLL 应用程序的导出函数。
  2. //
  3. #include "stdafx.h"
  4. #include "mod_PortableScanner.h"
  5. void CPortableScannerServerSession::Handle_BindCameraDevice(
  6. SpReqAnsContext<PortableScannerService_BindCameraDevice_Req,
  7. PortableScannerService_BindCameraDevice_Ans>::Pointer ctx)
  8. {
  9. LOG_FUNCTION();
  10. m_pEntity->BindDevice(ctx);
  11. }
  12. void CPortableScannerServerSession::Handle_StartPreview(SpReqAnsContext<PortableScannerService_StartPreview_Req,
  13. PortableScannerService_StartPreview_Ans>::Pointer ctx)
  14. {
  15. LOG_FUNCTION();
  16. m_pEntity->Preview(ctx);
  17. }
  18. void CPortableScannerServerSession::Handle_CancelPreview(SpReqAnsContext<PortableScannerService_CancelPreview_Req,
  19. PortableScannerService_CancelPreview_Ans>::Pointer ctx)
  20. {
  21. LOG_FUNCTION();
  22. m_pEntity->CancelPreview(ctx);
  23. }
  24. void CPortableScannerServerSession::Handle_ScanImage(SpReqAnsContext<PortableScannerService_ScanImage_Req,
  25. PortableScannerService_ScanImage_Ans>::Pointer ctx)
  26. {
  27. LOG_FUNCTION();
  28. m_pEntity->ScanImage(ctx);
  29. }
  30. void CPortableScannerServerSession::Handle_ScanImageEx(SpReqAnsContext<PortableScannerService_ScanImageEx_Req,
  31. PortableScannerService_ScanImageEx_Ans>::Pointer ctx)
  32. {
  33. LOG_FUNCTION();
  34. m_pEntity->ScanImageEx(ctx);
  35. }
  36. void CPortableScannerServerSession::Handle_SetProperty(SpReqAnsContext<PortableScannerService_SetProperty_Req,
  37. PortableScannerService_SetProperty_Ans>::Pointer ctx)
  38. {
  39. LOG_FUNCTION();
  40. m_pEntity->SetProperty(ctx);
  41. }
  42. void CPortableScannerServerSession::Handle_SetWinPos(SpReqAnsContext<PortableScannerService_SetWinPos_Req,
  43. PortableScannerService_SetWinPos_Ans>::Pointer ctx)
  44. {
  45. LOG_FUNCTION();
  46. m_pEntity->SetWinPos(ctx);
  47. }
  48. void CPortableScannerServerSession::Handle_ShowProperty(SpReqAnsContext<PortableScannerService_ShowProperty_Req, PortableScannerService_ShowProperty_Ans>::Pointer ctx)
  49. {
  50. LOG_FUNCTION();
  51. m_pEntity->ShowProperty(ctx);
  52. }
  53. void CPortableScannerServerSession::Handle_GetDevStatus(SpReqAnsContext<PortableScannerService_GetDevStatus_Req,
  54. PortableScannerService_GetDevStatus_Ans>::Pointer ctx)
  55. {
  56. LOG_FUNCTION();
  57. m_pEntity->GetDevStatus(ctx);
  58. }
  59. void CPortableScannerServerSession::Handle_GetDevInfo(SpReqAnsContext<PortableScannerService_GetDevInfo_Req,
  60. PortableScannerService_GetDevInfo_Ans>::Pointer ctx)
  61. {
  62. LOG_FUNCTION();
  63. m_pEntity->GetDevInfo(ctx);
  64. }
  65. void CPortableScannerServerSession::Handle_Exit(SpOnewayCallContext<PortableScannerService_Exit_Info>::Pointer ctx)
  66. {
  67. LOG_FUNCTION();
  68. m_pEntity->Exit(ctx);
  69. }
  70. void CPortableScannerServerSession::Handle_DropOffDevice(
  71. SpOnewayCallContext<PortableScannerService_DropOffDevice_Info>::Pointer ctx)
  72. {
  73. LOG_FUNCTION();
  74. m_pEntity->DropOffDevice(ctx);
  75. }
  76. SP_BEGIN_ENTITY_MAP()
  77. SP_ENTITY(CPortableScannerEntity)
  78. SP_END_ENTITY_MAP()