imagerscanengineClient.h
Go to the documentation of this file.
1 
4 #pragma once
5 #include "../../../../LIBRARIES/MIDDLEWARE/src/com/dpyMwClient.h"
6 #include "imagerscanengineApi.h"
7 
13 {
14 private:
15  void RegisterCallbacks();
16 public:
17  ImagerScanEngineClient(std::string& ip, int dport, int sport);
19  void asyncPerformAction(dpyImagerscanengine::Actions action, dpyImagerscanengine::request_handler_function requestHandler);
20  void asyncGetScannedCodes(dpyImagerscanengine::get_scanned_codes_function scannedCodesHandler);
21  void getScannedCodes_U();
22  void asyncGetListEvents(dpyImagerscanengine::get_list_events_function listEventsHandler);
23  void getListEvents_U();
24  void asyncGetScannerStatus(dpyImagerscanengine::get_scanner_status_function scannerStatusHandler);
25  void getScannerStatus_U();
26  void asyncGetLastScannedCode(dpyImagerscanengine::get_scanned_codes_function scannedCodesHandler);
27  void asyncSetReadMode(dpyImagerscanengine::ReadMode mode, dpyImagerscanengine::request_handler_function requestHandler);
28  void asyncSetIlluminationProperties(dpyImagerscanengine::Illumination illumination, dpyImagerscanengine::request_handler_function requestHandler);
29  void asyncSetBrightnessProperties(dpyImagerscanengine::Brightness brightness, dpyImagerscanengine::request_handler_function requestHandler);
30  void asyncSetImageMirroredSettings(dpyImagerscanengine::Rotation rotation, dpyImagerscanengine::request_handler_function requestHandler);
31  void asyncSetDetectionProperties(dpyImagerscanengine::DetectionMode detection, dpyImagerscanengine::request_handler_function requestHandler);
32  void asyncSetSensitivityProperties(dpyImagerscanengine::SensitivityMode sensitivity, dpyImagerscanengine::request_handler_function requestHandler);
33  void asyncSetRereadTimeoutProperties(int rereadTimeout, dpyImagerscanengine::request_handler_function requestHandler);
34  void asyncSaveImage(std::string &outputImageFile, dpyImagerscanengine::request_handler_function requestHandler);
35  void asyncGetScannerInfo(dpyImagerscanengine::get_scanner_info_function scannerInfoHandler);
36 };
ReadMode
Read Mode to be requested via client.
Definition: iScanEngineDevice.h:33
boost::function< void(boost::system::error_code &ec, ScannerStatus status)> get_scanner_status_function
Prototype of the handler function for getScannerStatus method.
Definition: imagerscanengineApi.h:38
DetectionMode
Detection Mode to be requested via client.
Definition: iScanEngineDevice.h:50
SensitivityMode
Sensitivity Mode to be requested via client.
Definition: iScanEngineDevice.h:58
Brightness
Brightness to be requested via client.
Definition: iScanEngineDevice.h:26
Interacts with platform manager service.
Definition: imagerscanengineClient.h:12
boost::function< void(boost::system::error_code &ec, ListEvent event)> get_list_events_function
Prototype of the handler function for getListEvents method.
Definition: imagerscanengineApi.h:37
Rotation
Rotation Mode to be requested via client.
Definition: iScanEngineDevice.h:41
Illumination
Illumination to be requested via client.
Definition: iScanEngineDevice.h:18
boost::function< void(boost::system::error_code &ec)> request_handler_function
Handler for status function callback.
Definition: imagerscanengineApi.h:35
boost::function< void(boost::system::error_code &ec, ScannerInfo info)> get_scanner_info_function
Prototype of the handler function for getScannerInfo method.
Definition: imagerscanengineApi.h:39
Manages dealer and susbriber.
Definition: dpyMwClient.h:59
boost::function< void(boost::system::error_code &ec, const std::string &scanned_code)> get_scanned_codes_function
Prototype of the handler function for getScannedCodes method.
Definition: imagerscanengineApi.h:36
Actions
Actions to be requested via client.
Definition: iScanEngineDevice.h:12