scmClient.h
Go to the documentation of this file.
1 
4 #pragma once
5 #include "../../../../LIBRARIES/MIDDLEWARE/src/com/dpyMwClient.h"
6 #include "scmApi.h"
7 
12 class SCMClient: public DpyMwClient
13 {
14 private:
15  void RegisterCallbacks();
16 public:
17  SCMClient(std::string& ip, int dport, int sport);
18  ~SCMClient();
19  void asyncGetDevices(dpySCM::get_devices_handler_function handler);
20  void asyncGetReaders(std::string deviceId, dpySCM::get_readers_handler_function handler);
21  void newCardEvent_S(dpySCM::handler_cardEvent_function handler);
22  void newCardEvent_U();
23  void deviceListEvent_S(dpySCM::handler_deviceListEvent_function handler);
24  void deviceListEvent_U();
25  void chargeResultEMV_S(dpySCM::handler_device_charge_result_function handler);
26  void chargeResultEMV_U();
27  void upgradeStatus_S(dpySCM::upgrade_status_events_function handler);
28  void upgradeStatus_U();
29  void asyncForceDeviceUpgrade(std::string deviceId,dpySCM::force_device_upgrade_function handler);
32  void asyncAddKeys(std::string deviceId, std::string json, dpySCM::confirmation_handler_function handler);
33  void asyncGetKeys(std::string deviceId, dpySCM::get_keys_handler_function handler);
34  void asyncRemoveKeys(std::string deviceId, dpySCM::confirmation_handler_function handler);
35  void asyncCardOperation(dpySCM::TransactionDevice opertionDevice, dpySCM::card_operation_handler_function handler);
36  void asyncPassThrough(dpySCM::DevicePassThrough devicePassThrough, dpySCM::pass_through_operation_handler_function handler);
37  void asyncGetVersion(std::string deviceId, dpySCM::device_version_handler_function handler);
38  void asyncRequestChargeEMV(dpySCM::DeviceRequestCharge requestChargeDevice, dpySCM::confirmation_handler_function handler);
39  void asyncChargeConfirmationEMV(dpySCM::DeviceChargeConfirmation deviceChargeConfirmation, dpySCM::confirmation_handler_function handler);
40  void asyncSetPaymentAppStatus(dpySCM::DevicePaymentAppStatus Status, dpySCM::confirmation_handler_function handler);
41  void asyncGetPaymentAppInfo(std::string deviceId, dpySCM::device_payment_app_info_function handler);
42  void asyncGetPaymentAppConf(dpySCM::DevicePaymentAppConfiguration devicePaymentAppConf, dpySCM::device_payment_app_conf_function handler);
43  void asyncSetPaymentAppConf(dpySCM::DevicePaymentAppConfiguration devicePaymentAppConf, dpySCM::confirmation_handler_function handler);
44  void asyncForcePaymentAppComm(std::string deviceId, dpySCM::confirmation_handler_function handler);
45  void asyncPlayProfile(std::string deviceId, std::string profileId, dpySCM::confirmation_handler_function handler);
46  void asyncAddMediaProfiles(std::string deviceId,std::string json, dpySCM::confirmation_handler_function handler);
47  void asyncAddMediaProfiles(dpySCM::DeviceMediaProfiles deviceMediaProfiles, dpySCM::confirmation_handler_function handler);
48  void asyncGetMediaProfiles(std::string deviceId, dpySCM::device_media_profiles_function handler);
49  void asyncRemoveMediaProfiles(std::string deviceId, dpySCM::confirmation_handler_function handler);
50  void pciRebootEvent_S(dpySCM::reboot_time_handler_function handler);
51  void pciRebootEvent_U();
52  void asyncGetPciRebootTime(std::string deviceId, dpySCM::reboot_time_handler_function handler);
53  void asyncSetPciRebootTime(dpySCM::DevicePciRebootTime rebootTime, dpySCM::confirmation_handler_function handler);
54  void asyncGetULCounter(std::string deviceId, dpySCM::UltraLightCounter& ulCounter, dpySCM::ultralight_counter_handler_function handler);
55  void asyncIncrementULCounter(std::string deviceId, dpySCM::UltraLightCounter& ulCounter, dpySCM::confirmation_handler_function handler);
56  void asyncGetNetworkConfiguration(std::string deviceId, dpySCM::device_network_configuration_handler_function handler);
57  void asyncSetNetworkConfiguration(dpySCM::DeviceNetworkConfiguration deviceNetworkConfiguration, dpySCM::confirmation_handler_function handler);
58  void asyncGetDateTime(std::string deviceId, dpySCM::device_date_time_handler_function handler);
59  void asyncRebootDevice(std::string deviceId, dpySCM::RebootType rebootType, dpySCM::confirmation_handler_function handler);
60  void asyncTestNetworkConnectivity(dpySCM::DeviceNetworkConnectivity deviceNetworkConnectivity, dpySCM::network_status_handler_function handler);
61  void asyncSetLoggingConfiguration(std::string deviceId, dpySCM::LoggingConfiguration loggingConfiguration, dpySCM::confirmation_handler_function handler);
62  void asyncGetLoggingConfiguration(std::string deviceId, dpySCM::get_logging_configuration_handler_function handler);
63  void asyncResetSamSlot(std::string deviceId, dpySCM::SamSlot slotNumber, dpySCM::confirmation_handler_function handler);
64 
65 };
boost::function< void(boost::system::error_code &ec, dpySCM::DeviceNetworkConfiguration &deviceNetworkConfiguration)> device_network_configuration_handler_function
Result of get network configuration.
Definition: scmApi.h:53
Structure for UltraLight counter requests.
Definition: scmTypes.h:640
boost::function< void(boost::system::error_code &ec, dpySCM::TransactionDevice TransactionDevice)> card_operation_handler_function
Result of card operation.
Definition: scmApi.h:44
boost::function< void(boost::system::error_code &ec, dpySCM::DeviceKeys deviceKeys)> get_keys_handler_function
Result of getting keys information.
Definition: scmApi.h:43
The device network configuration.
Definition: scmTypes.h:258
Device payment terminal configuration.
Definition: scmTypes.h:371
Device request of charging.
Definition: scmTypes.h:395
Manages the status file.
Definition: status.h:44
Transaction operation device.
Definition: scmTypes.h:195
boost::function< void(boost::system::error_code &ec, dpySCM::DevicePaymentAppConfiguration &devicePaymentAppConf)> device_payment_app_conf_function
Result of get device payment application configuration.
Definition: scmApi.h:54
boost::function< void(boost::system::error_code &ec, dpySCM::DeviceDateTime &dateTime)> device_date_time_handler_function
Result of get network configuration.
Definition: scmApi.h:55
boost::function< void(boost::system::error_code &ec, dpySCM::UltraLightCounter &ulCounter)> ultralight_counter_handler_function
Result of getting a ultralight counter value.
Definition: scmApi.h:52
boost::function< void(boost::system::error_code &ec, dpySCM::DeviceChargeResult deviceChargeResult)> handler_device_charge_result_function
Result of device charge EMV result.
Definition: scmApi.h:40
boost::function< void(boost::system::error_code &ec)> confirmation_handler_function
Result of confirmation operation.
Definition: scmApi.h:42
SamSlot
Logging Level values indicating severity of the logs.
Definition: scmTypes.h:715
boost::function< void(boost::system::error_code &ec, dpySCM::DevicePaymentAppInfo &devicePaymentAppInfo)> device_payment_app_info_function
Result of get device payment application info.
Definition: scmApi.h:47
Device pass through.
Definition: scmTypes.h:633
The Logging Configuration to be applied or being applied.
Definition: scmTypes.h:705
boost::function< void(boost::system::error_code &ec, dpySCM::DeviceVersion &deviceVersion)> device_version_handler_function
Result of get version.
Definition: scmApi.h:46
Device payment application information.
Definition: scmTypes.h:289
Add Keys.
Definition: scmTypes.h:210
Device media profiles.
Definition: scmTypes.h:610
Contains the network address to be tested on that device.
Definition: scmTypes.h:667
boost::function< void(boost::system::error_code &ec, const dpySCM::Device &rDevice)> get_devices_handler_function
Handler for status function callback.
Definition: scmApi.h:37
boost::function< void(boost::system::error_code &ec, dpySCM::DeviceUpgradeStatus &deviceUpgradeStatus)> upgrade_status_events_function
Result of every upgrade status event.
Definition: scmApi.h:49
boost::function< void(boost::system::error_code &ec, dpySCM::DevicePciRebootTime &devicePciRebootTime)> reboot_time_handler_function
Result of getting PCI Data Security Standard reboot time.
Definition: scmApi.h:51
boost::function< void(boost::system::error_code &ec, const std::string &deviceId)> force_device_upgrade_function
Result of force device upgrade request.
Definition: scmApi.h:50
Device confirmation charge.
Definition: scmTypes.h:488
RebootType
Reboot type, it defines different reboot types.
Definition: scmTypes.h:660
boost::function< void(boost::system::error_code &ec, const std::string &deviceId, dpySCM::Event deviceEvent)> handler_deviceListEvent_function
Result of added/removed device event.
Definition: scmApi.h:41
boost::function< void(boost::system::error_code &ec, const std::string &deviceId, dpySCM::LoggingConfiguration &loggingConfiguration)> get_logging_configuration_handler_function
Result of getting logging configuration.
Definition: scmApi.h:57
Device PCI Reboot Time.
Definition: scmTypes.h:509
Interacts with platform manager service.
Definition: scmClient.h:12
Manages dealer and susbriber.
Definition: dpyMwClient.h:59
boost::function< void(boost::system::error_code &ec, dpySCM::DevicePassThrough devicePassThrough)> pass_through_operation_handler_function
Result of pass through operation.
Definition: scmApi.h:45
boost::function< void(boost::system::error_code &ec, const dpySCM::DeviceReaderList &rReader)> get_readers_handler_function
Result of getting readers information.
Definition: scmApi.h:38
boost::function< void(boost::system::error_code &ec, const std::string &deviceId, dpySCM::CardEvent cardEvent)> handler_cardEvent_function
Result of new card event.
Definition: scmApi.h:39
boost::function< void(boost::system::error_code &ec, dpySCM::DeviceNetworkStatus &deviceNetworkStatus)> network_status_handler_function
Result of testing network connectivity.
Definition: scmApi.h:56
boost::function< void(boost::system::error_code &ec, dpySCM::DeviceMediaProfiles &deviceMediaProfiles)> device_media_profiles_function
Result of get media profiles.
Definition: scmApi.h:48
void asyncAddKeys(dpySCM::DeviceKeys keyGroup, dpySCM::confirmation_handler_function handler)
TODO GET UPGRADE STATUS.