123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- // mod_HSPScanner.cpp : 定义 DLL 应用程序的导出函数。
- //
- #include "stdafx.h"
- #include "mod_ScannerSet.h"
- void ScannerServerSession::Handle_StartPreview(SpReqAnsContext<ScannerService_StartPreview_Req,
- ScannerService_StartPreview_Ans>::Pointer ctx)
- {
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->Preview(ctx);
- }
- void ScannerServerSession::Handle_CancelPreview(SpReqAnsContext<ScannerService_CancelPreview_Req,
- ScannerService_CancelPreview_Ans>::Pointer ctx)
- {
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->CancelPreview(ctx);
- }
- void ScannerServerSession::Handle_ScanImage(SpReqAnsContext<ScannerService_ScanImage_Req,
- ScannerService_ScanImage_Ans>::Pointer ctx)
- {
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->ScanImage(ctx);
- }
- void ScannerServerSession::Handle_SetWindowPos(SpReqAnsContext<ScannerService_SetWindowPos_Req,
- ScannerService_SetWindowPos_Ans>::Pointer ctx)
- {
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->SetWinPos(ctx);
- }
- void ScannerServerSession::Handle_SetProperty(SpReqAnsContext<ScannerService_SetProperty_Req, ScannerService_SetProperty_Ans>::Pointer ctx)
- {
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->SetProperty(ctx);
- }
- void ScannerServerSession::Handle_ShowProperty(SpReqAnsContext<ScannerService_ShowProperty_Req,
- ScannerService_ShowProperty_Ans>::Pointer ctx)
- {
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->ShowProperty(ctx);
- }
- void ScannerServerSession::Handle_GetDevStatus(SpReqAnsContext<ScannerService_GetDevStatus_Req,
- ScannerService_GetDevStatus_Ans>::Pointer ctx)
- {
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->GetDevStatus(ctx);
- }
- void ScannerServerSession::Handle_GetDevInfo(SpReqAnsContext<ScannerService_GetDevInfo_Req,
- ScannerService_GetDevInfo_Ans>::Pointer ctx)
- {
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->GetDevInfo(ctx);
- }
- void ScannerServerSession::Handle_GetOnlineCameras(SpReqAnsContext<ScannerService_GetOnlineCameras_Req,
- ScannerService_GetOnlineCameras_Ans>::Pointer ctx) {
-
- DbgToBeidou(ctx->link, __FUNCTION__)();
- ctx->Answer(Error_NotSupport);
- }
- void ScannerServerSession::Handle_Exit(SpOnewayCallContext<ScannerService_Exit_Info>::Pointer ctx)
- {
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->Exit(ctx);
- }
- SP_BEGIN_ENTITY_MAP()
- SP_ENTITY(CScannerEntity)
- SP_END_ENTITY_MAP()
|