123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328 |
- #ifndef __PORTABLESCANNER_DEF_G_H
- #define __PORTABLESCANNER_DEF_G_H
- #pragma once
- // This code is generated by spgen tool!
- #include "SpHelper.h"
- namespace PortableScanner {
- //
- // const goes here
- //
- #define PSSTATUS_INVALID 0
- #define PSSTATUS_NOTHOLD 1
- #define PSSTATUS_IDLE 2
- #define PSSTATUS_PREVIEW 3
- #define PSSTATUS_PICTURE 4
- enum CapTypeEnum {
- CAMTYPE_UNKNOWN = 0,
- CAMTYPE_ENV, /*PAD£¬Ç°ÖÃÉãÏñÍ·*/
- CAMTYPE_OPT,
- CAMTYPE_EWS,
- CAMTYPE_HSPS,
- CAMTYPE_CIRCLE,
- CAMTYPE_MAX
- };
- #define PortableScannerService_Method_BindCameraDevice 0
- #define PortableScannerService_Method_DropOffDevice 1
- #define PortableScannerService_Method_StartPreview 2
- #define PortableScannerService_Method_CancelPreview 3
- #define PortableScannerService_Method_ScanImage 4
- #define PortableScannerService_Method_ScanImageEx 5
- #define PortableScannerService_Method_SetProperty 6
- #define PortableScannerService_Method_SetWinPos 7
- #define PortableScannerService_Method_ShowProperty 8
- #define PortableScannerService_Method_GetDevStatus 9
- #define PortableScannerService_Method_GetDevInfo 65535
- #define PortableScannerService_Method_Exit 10
- #define PortableScannerService_MethodSignature_BindCameraDevice 138118389
- #define PortableScannerService_MethodSignature_DropOffDevice 1948487618
- #define PortableScannerService_MethodSignature_StartPreview 220854261
- #define PortableScannerService_MethodSignature_CancelPreview 961536349
- #define PortableScannerService_MethodSignature_ScanImage -296593544
- #define PortableScannerService_MethodSignature_ScanImageEx -979149528
- #define PortableScannerService_MethodSignature_SetProperty -712141050
- #define PortableScannerService_MethodSignature_SetWinPos 1478816537
- #define PortableScannerService_MethodSignature_ShowProperty -2138273708
- #define PortableScannerService_MethodSignature_GetDevStatus -1140141235
- #define PortableScannerService_MethodSignature_GetDevInfo 296205965
- #define PortableScannerService_MethodSignature_Exit -1158854104
- struct PortableScannerService_BindCameraDevice_Req
- {
- CSimpleStringA devName;
- int devId;
- int type;
- short force;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & devName & devId & type & force;
- }
- };
- struct PortableScannerService_BindCameraDevice_Ans
- {
- int usedId;
- CSimpleStringA checkcode;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & usedId & checkcode;
- }
- };
- struct PortableScannerService_DropOffDevice_Info
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PortableScannerService_StartPreview_Req
- {
- short rotateType;
- short scanType;
- short colorType;
- short reserved1;
- short reserved2;
- short reserved3;
- short reserved4;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & rotateType & scanType & colorType & reserved1 & reserved2 & reserved3 & reserved4;
- }
- };
- struct PortableScannerService_StartPreview_Ans
- {
- int retCode;
- int reserved1;
- CAutoArray<int> reserved2;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & retCode & reserved1 & reserved2;
- }
- };
- struct PortableScannerService_CancelPreview_Req
- {
- bool bOnlyHide;
- int reserved1;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & bOnlyHide & reserved1;
- }
- };
- struct PortableScannerService_CancelPreview_Ans
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PortableScannerService_ScanImage_Req
- {
- int reserved1;
- int reserved2;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & reserved1 & reserved2;
- }
- };
- struct PortableScannerService_ScanImage_Ans
- {
- CSimpleStringA filePath;
- CBlob imageData;
- int reserved1;
- CSimpleStringA reserved2;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & filePath & imageData & reserved1 & reserved2;
- }
- };
- struct PortableScannerService_ScanImageEx_Req
- {
- int reserved1;
- int reserved2;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & reserved1 & reserved2;
- }
- };
- struct PortableScannerService_ScanImageEx_Ans
- {
- CSimpleStringA filePath;
- CBlob imageData;
- int reserved1;
- CSimpleStringA reserved2;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & filePath & imageData & reserved1 & reserved2;
- }
- };
- struct PortableScannerService_SetProperty_Req
- {
- short rotateType;
- short scanType;
- short colorType;
- short reserved1;
- short reserved2;
- short reserved3;
- short reserved4;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & rotateType & scanType & colorType & reserved1 & reserved2 & reserved3 & reserved4;
- }
- };
- struct PortableScannerService_SetProperty_Ans
- {
- int retCode;
- int reserved1;
- CAutoArray<int> reserved2;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & retCode & reserved1 & reserved2;
- }
- };
- struct PortableScannerService_SetWinPos_Req
- {
- int type;
- int pointX;
- int pointY;
- int nWidth;
- int reserved4;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & type & pointX & pointY & nWidth & reserved4;
- }
- };
- struct PortableScannerService_SetWinPos_Ans
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PortableScannerService_ShowProperty_Req
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PortableScannerService_ShowProperty_Ans
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PortableScannerService_GetDevStatus_Req
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PortableScannerService_GetDevStatus_Ans
- {
- int connected;
- int showing;
- int previewing;
- int devIndex;
- short type;
- CSimpleStringA checkcode;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & connected & showing & previewing & devIndex & type & checkcode;
- }
- };
- struct PortableScannerService_GetDevInfo_Req
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- struct PortableScannerService_GetDevInfo_Ans
- {
- CSimpleStringA type;
- CSimpleStringA model;
- CSimpleStringA version;
- int state;
- void Serialize(SpBuffer &Buf)
- {
- auto & buf = Buf & type & model & version & state;
- }
- };
- struct PortableScannerService_Exit_Info
- {
- void Serialize(SpBuffer &Buf)
- {
- }
- };
- ///////////////////////////
- } // namespace PortableScanner
- #endif // __PORTABLESCANNER_DEF_G_H
|