mod_PortableScanner.cpp 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. DbgToBeidou(ctx->link, __FUNCTION__)();
  11. m_pEntity->BindDevice(ctx);
  12. }
  13. void CPortableScannerServerSession::Handle_StartPreview(SpReqAnsContext<PortableScannerService_StartPreview_Req,
  14. PortableScannerService_StartPreview_Ans>::Pointer ctx)
  15. {
  16. LOG_FUNCTION();
  17. DbgToBeidou(ctx->link, __FUNCTION__)();
  18. m_pEntity->Preview(ctx);
  19. }
  20. void CPortableScannerServerSession::Handle_CancelPreview(SpReqAnsContext<PortableScannerService_CancelPreview_Req,
  21. PortableScannerService_CancelPreview_Ans>::Pointer ctx)
  22. {
  23. LOG_FUNCTION();
  24. DbgToBeidou(ctx->link, __FUNCTION__)();
  25. m_pEntity->CancelPreview(ctx);
  26. }
  27. void CPortableScannerServerSession::Handle_ScanImage(SpReqAnsContext<PortableScannerService_ScanImage_Req,
  28. PortableScannerService_ScanImage_Ans>::Pointer ctx)
  29. {
  30. LOG_FUNCTION();
  31. DbgToBeidou(ctx->link, __FUNCTION__)();
  32. m_pEntity->ScanImage(ctx);
  33. }
  34. void CPortableScannerServerSession::Handle_ScanImageEx(SpReqAnsContext<PortableScannerService_ScanImageEx_Req,
  35. PortableScannerService_ScanImageEx_Ans>::Pointer ctx)
  36. {
  37. LOG_FUNCTION();
  38. DbgToBeidou(ctx->link, __FUNCTION__)();
  39. m_pEntity->ScanImageEx(ctx);
  40. }
  41. void CPortableScannerServerSession::Handle_SetProperty(SpReqAnsContext<PortableScannerService_SetProperty_Req,
  42. PortableScannerService_SetProperty_Ans>::Pointer ctx)
  43. {
  44. LOG_FUNCTION();
  45. DbgToBeidou(ctx->link, __FUNCTION__)();
  46. m_pEntity->SetProperty(ctx);
  47. }
  48. void CPortableScannerServerSession::Handle_SetWinPos(SpReqAnsContext<PortableScannerService_SetWinPos_Req,
  49. PortableScannerService_SetWinPos_Ans>::Pointer ctx)
  50. {
  51. LOG_FUNCTION();
  52. DbgToBeidou(ctx->link, __FUNCTION__)();
  53. m_pEntity->SetWinPos(ctx);
  54. }
  55. void CPortableScannerServerSession::Handle_ShowProperty(SpReqAnsContext<PortableScannerService_ShowProperty_Req, PortableScannerService_ShowProperty_Ans>::Pointer ctx)
  56. {
  57. LOG_FUNCTION();
  58. DbgToBeidou(ctx->link, __FUNCTION__)();
  59. m_pEntity->ShowProperty(ctx);
  60. }
  61. void CPortableScannerServerSession::Handle_GetDevStatus(SpReqAnsContext<PortableScannerService_GetDevStatus_Req,
  62. PortableScannerService_GetDevStatus_Ans>::Pointer ctx)
  63. {
  64. LOG_FUNCTION();
  65. DbgToBeidou(ctx->link, __FUNCTION__)();
  66. m_pEntity->GetDevStatus(ctx);
  67. }
  68. void CPortableScannerServerSession::Handle_GetDevInfo(SpReqAnsContext<PortableScannerService_GetDevInfo_Req,
  69. PortableScannerService_GetDevInfo_Ans>::Pointer ctx)
  70. {
  71. LOG_FUNCTION();
  72. DbgToBeidou(ctx->link, __FUNCTION__)();
  73. m_pEntity->GetDevInfo(ctx);
  74. }
  75. void CPortableScannerServerSession::Handle_Exit(SpOnewayCallContext<PortableScannerService_Exit_Info>::Pointer ctx)
  76. {
  77. LOG_FUNCTION();
  78. DbgToBeidou(ctx->link, __FUNCTION__)();
  79. m_pEntity->Exit(ctx);
  80. }
  81. void CPortableScannerServerSession::Handle_DropOffDevice(
  82. SpOnewayCallContext<PortableScannerService_DropOffDevice_Info>::Pointer ctx)
  83. {
  84. LOG_FUNCTION();
  85. DbgToBeidou(ctx->link, __FUNCTION__)();
  86. m_pEntity->DropOffDevice(ctx);
  87. }
  88. SP_BEGIN_ENTITY_MAP()
  89. SP_ENTITY(CPortableScannerEntity)
  90. SP_END_ENTITY_MAP()