modemClient.h
Go to the documentation of this file.
15 std::map<modemProto::WarningNotification_Notif,dpyModem::ModemWarning > mWarningPrototoNotificationmap;
16 std::map<modemProto::CallSourceStatus,dpyModem::CallSourceStatus> mCallSourceStatusProtoToStatusMap;
22 std::map<modemProto::ModemStatus_PowerStatus, dpyModem::ModemPowerStatus> mProtoToPowerStatusMap;
23 std::map<modemProto::ModemStatus_SignalQuality, dpyModem::SignalQuality> mProtoToSignalQualityMap;
24 std::map<modemProto::ModemStatus_NetworkStatus, dpyModem::NetworkStatus > mProtoToCelullarNetworkStatusMap;
25 std::map<modemProto::ModemStatus_AccessTechnology, dpyModem::AccessTechnology > mProtoToAccessTechnologyMap;
27 std::map<dpyModemPrivate::VoiceCallOperation,modemProto::VoiceCallOperation_Type> mVoiceOperationToProtomap;
28 std::map<dpyModemPrivate::VoiceCallConfigParam,modemProto::CallParameters> mCallConfigToProtomap;
33 boost::system::error_code parseModemStatus(const modemProto::ModemStatus& protoStatus, dpyModem::ModemStatus& status);
48 void performApnOperation(const APN_OPERATION& oper,const std::string& imsi, dpyModem::result_handler_function handler, const dpyModem::AccessPointNetwork& new_apn = {} );
53 void asyncGetModemInfo(const std::string& modemid, dpyModem::modem_info_handler_function handler);
54 void asyncGetModemStatus(const std::string& modemid, dpyModem::modem_status_handler_function handler);
59 void asyncRequestModemOperation(const std::string& modemid, const dpyModem::ModemOperation& operation, dpyModem::result_handler_function handler);
61 void asyncIsDataConnectionEnabled(const std::string& modemid, dpyModem::modem_data_connection_status_handler_function handler);
63 void asyncGetActiveSims(const std::string& modemid, dpyModem::sim_list_handler_function handler);
64 void asyncSwitchCurrentSimCard(const std::string& modemid, dpyModem::result_handler_function handler);
73 void asyncGetCallSourceStatus(const std::string& simid,dpyModemPrivate::call_source_status_handler_function handler);
78 void asyncRequestVoiceCallOperation(const std::string& simid, const dpyModemPrivate::VoiceCallOperation& operation, const std::string& firstParameter, dpyModem::result_handler_function handler);
79 void asyncGetLastVoiceCallInfo(const std::string& simid, dpyModemPrivate::get_sim_call_info_handler_function handler);
80 void asyncSetVoiceCallConfig(const std::string& modemid, const dpyModemPrivate::VoiceCallConfigParam& param, const std::string& value, dpyModem::result_handler_function handler);
81 void asyncGetVoiceCallConfig(const std::string& modemid, dpyModemPrivate::voice_call_config_handler_function handler);
82 [[deprecated("Do not use the IMSI parameter to configure a forced APN. Forced APN is used for all inserted SIMs")]]
83 void asyncForceCustomApn(const std::string& imsi, dpyModem::result_handler_function handler, const bool& force = false, const dpyModem::AccessPointNetwork& custom_apn = {});
84 void asyncForceCustomApn(dpyModem::result_handler_function handler, const bool& force = false, const dpyModem::AccessPointNetwork& custom_apn = {});
85 void asyncGetInterfaceStatistics(const std::string& modemid, dpyModem::interface_statistics_function_handler handler);
86 void asyncForceNetworkMode(const std::string& modemid, dpyModem::NetworkMode mode,dpyModem::result_handler_function handler);
boost::function< void(boost::system::error_code, std::string simid, dpyModem::SimStatus status)> simStatus_handler_function
Prototype of the handler function for sim status getter and events.
Definition: modemApi.h:129
Defines the status information structure that is obtained after a MODEM STATUS report.
Definition: iModem.h:130
boost::function< void(boost::system::error_code error_code, std::string simid, dpyModem::CallInfo callinfo)> get_sim_call_info_handler_function
Prototype of the handler function used to retrieve call info.
Definition: modemApiPrivate.h:53
ModemOperation
Defines the possible operations that can be queried to a modem.
Definition: modemApi.h:42
boost::function< void(boost::system::error_code, std::list< std::string > modems)> modem_list_handler_function
Prototype of the handler function for getting available modems.
Definition: modemApi.h:58
boost::function< void(boost::system::error_code error_code, const std::string &modemId, const std::string &interfaceName, std::map< dpyNetworking::Statistics, uint32_t >statisticsValues, const std::string &interfaceIpAddress)> interface_statistics_function_handler
Prototype of the handler function for asyncGetInterfaceStatistics method.
Definition: modemApi.h:146
boost::function< void(boost::system::error_code, std::string simid, dpyModem::CallStatus event)> voice_call_event_handler_function
Prototype of the handler function used to retrieve call events.
Definition: modemApiPrivate.h:56
boost::function< void(boost::system::error_code, std::string simid, dpyModem::CallSourceStatus callSourceStatus)> call_source_status_handler_function
Prototype of the handler function used to retrieve sim status in terms of calls.
Definition: modemApiPrivate.h:55
boost::function< void(boost::system::error_code error_code, std::string modemid, struct ModemStatus &status)> modem_status_handler_function
Prototype of the handler function for modem status getter and events.
Definition: modemApi.h:73
VoiceCallOperation
Defines the possible voice call operations.
Definition: modemApiPrivate.h:17
boost::function< void(boost::system::error_code, std::string modemid, dpyModem::ModemWarning warning)> modem_warning_event_handler_function
Prototype of the handler function for subscribing to modem warnings.
Definition: modemApi.h:90
VoiceCallConfigParam
Defines the possible voice call configuration parameters.
Definition: modemApiPrivate.h:26
boost::function< void(boost::system::error_code error_code, dpyModem::AccessPointNetwork found_apn)> forced_apn_handler_function
Prototype of the handler function for get the global forced APN.
Definition: modemApi.h:161
boost::function< void(boost::system::error_code, SimInfo siminfo)> sim_info_handler_function
Prototype of the handler function used to get a specific sim information.
Definition: modemApi.h:112
boost::function< void(boost::system::error_code error_code, std::string modemid, const bool &enabled)> modem_data_connection_status_handler_function
Prototype of the handler function to receive modem data connection status.
Definition: modemApi.h:98
boost::function< void(boost::system::error_code, std::list< std::string > sims)> sim_list_handler_function
Prototype of the handler function for getting available sims.
Definition: modemApi.h:65
boost::function< void(boost::system::error_code, std::string modemid, std::map< dpyModemPrivate::VoiceCallConfigParam, std::string > call_param_to_value_map)> voice_call_config_handler_function
Prototype of the handler function used to retrieve the call configuration.
Definition: modemApiPrivate.h:57
boost::function< void(boost::system::error_code error_code, const AccessPointNetwork &apn_info)> get_apn_by_imsi_handler_function
Prototype of the handler function for obtaining apn information (getCurrentApn or getApnByImsi method...
Definition: modemApi.h:143
boost::function< void(boost::system::error_code, std::string modemid, std::string simid, ListEvent event)> sim_list_event_handler_function
Prototype of the handler function for subscribing to list events.
Definition: modemApi.h:121
APN_OPERATION
Types of APN operations as used in performApnOperation method.
Definition: modemClient.h:37
boost::function< void(boost::system::error_code error_code, std::string modemid, int simSlot)> sim_slot_handler_function
Prototype of the handler function for get the current sim slot.
Definition: modemApi.h:154
Definition: iSim.h:40
boost::function< void(boost::system::error_code, ModemInfo modeminfo)> modem_info_handler_function
Prototype of the handler function used to get a specific modem information.
Definition: modemApi.h:105
boost::function< void(boost::system::error_code, std::string modemid, ListEvent event)> modem_list_event_handler_function
Prototype of the handler function for subscribing to list events.
Definition: modemApi.h:82
boost::function< void(boost::system::error_code error_code)> result_handler_function
Prototype of the handler function for obtaining result of the different operations.
Definition: modemApi.h:144
