mod_ScannerSet.cpp 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // mod_HSPScanner.cpp : 定义 DLL 应用程序的导出函数。
  2. //
  3. #include "stdafx.h"
  4. #include "mod_ScannerSet.h"
  5. void ScannerServerSession::Handle_StartPreview(SpReqAnsContext<ScannerService_StartPreview_Req,
  6. ScannerService_StartPreview_Ans>::Pointer ctx)
  7. {
  8. DbgToBeidou(ctx->link, __FUNCTION__)();
  9. m_pEntity->Preview(ctx);
  10. }
  11. void ScannerServerSession::Handle_CancelPreview(SpReqAnsContext<ScannerService_CancelPreview_Req,
  12. ScannerService_CancelPreview_Ans>::Pointer ctx)
  13. {
  14. DbgToBeidou(ctx->link, __FUNCTION__)();
  15. m_pEntity->CancelPreview(ctx);
  16. }
  17. void ScannerServerSession::Handle_ScanImage(SpReqAnsContext<ScannerService_ScanImage_Req,
  18. ScannerService_ScanImage_Ans>::Pointer ctx)
  19. {
  20. DbgToBeidou(ctx->link, __FUNCTION__)();
  21. m_pEntity->ScanImage(ctx);
  22. }
  23. void ScannerServerSession::Handle_SetWindowPos(SpReqAnsContext<ScannerService_SetWindowPos_Req,
  24. ScannerService_SetWindowPos_Ans>::Pointer ctx)
  25. {
  26. DbgToBeidou(ctx->link, __FUNCTION__)();
  27. m_pEntity->SetWinPos(ctx);
  28. }
  29. void ScannerServerSession::Handle_SetProperty(SpReqAnsContext<ScannerService_SetProperty_Req, ScannerService_SetProperty_Ans>::Pointer ctx)
  30. {
  31. DbgToBeidou(ctx->link, __FUNCTION__)();
  32. m_pEntity->SetProperty(ctx);
  33. }
  34. void ScannerServerSession::Handle_ShowProperty(SpReqAnsContext<ScannerService_ShowProperty_Req,
  35. ScannerService_ShowProperty_Ans>::Pointer ctx)
  36. {
  37. DbgToBeidou(ctx->link, __FUNCTION__)();
  38. m_pEntity->ShowProperty(ctx);
  39. }
  40. void ScannerServerSession::Handle_GetDevStatus(SpReqAnsContext<ScannerService_GetDevStatus_Req,
  41. ScannerService_GetDevStatus_Ans>::Pointer ctx)
  42. {
  43. DbgToBeidou(ctx->link, __FUNCTION__)();
  44. m_pEntity->GetDevStatus(ctx);
  45. }
  46. void ScannerServerSession::Handle_GetDevInfo(SpReqAnsContext<ScannerService_GetDevInfo_Req,
  47. ScannerService_GetDevInfo_Ans>::Pointer ctx)
  48. {
  49. DbgToBeidou(ctx->link, __FUNCTION__)();
  50. m_pEntity->GetDevInfo(ctx);
  51. }
  52. void ScannerServerSession::Handle_GetOnlineCameras(SpReqAnsContext<ScannerService_GetOnlineCameras_Req,
  53. ScannerService_GetOnlineCameras_Ans>::Pointer ctx) {
  54. DbgToBeidou(ctx->link, __FUNCTION__)();
  55. ctx->Answer(Error_NotSupport);
  56. }
  57. void ScannerServerSession::Handle_Exit(SpOnewayCallContext<ScannerService_Exit_Info>::Pointer ctx)
  58. {
  59. DbgToBeidou(ctx->link, __FUNCTION__)();
  60. m_pEntity->Exit(ctx);
  61. }
  62. SP_BEGIN_ENTITY_MAP()
  63. SP_ENTITY(CScannerEntity)
  64. SP_END_ENTITY_MAP()