ModemManagerPrivate Class Reference

Allows to interact with a modem from inside the Deepsy. More...

#include <modemApiPrivate.h>

Inheritance diagram for ModemManagerPrivate:

Public Member Functions

 ModemManagerPrivate (std::string ip="127.0.0.1")
 
Sms related methods
void asyncGetAllSmsInfo (const std::string &simid, dpyModemPrivate::get_sms_info_handler_function handler)
 
void getSmsEvents_S (dpyModemPrivate::sms_event_handler_function handler)
 
void asyncRequestSmsOperation (const std::string &simid, const dpyModemPrivate::SmsOperation &operation, const std::string &firstParameter, const std::string &secondParameter, dpyModem::result_handler_function handler)
 
boost::system::error_code requestSmsOperation (const std::string &simid, const dpyModemPrivate::SmsOperation &operation, const std::string &firstParameter, const std::string &secondParameter)
 Synchronous Sms related methods.
 
Voice call related methods
void asyncGetCallSourceStatus (const std::string &simid, dpyModemPrivate::call_source_status_handler_function handler)
 
void getCallSourceUpdates_S (dpyModemPrivate::call_source_status_handler_function handler)
 
void getCallSourceUpdates_U ()
 
void getVoiceCallEvents_S (dpyModemPrivate::voice_call_event_handler_function handler)
 
void getVoiceCallEvents_U ()
 
void asyncRequestVoiceCallOperation (const std::string &simid, const dpyModemPrivate::VoiceCallOperation &operation, const std::string &firstParameter, dpyModem::result_handler_function handler)
 
void asyncGetLastVoiceCallInfo (const std::string &simid, dpyModemPrivate::get_sim_call_info_handler_function handler)
 
void asyncSetVoiceCallConfig (const std::string &modemid, const dpyModemPrivate::VoiceCallConfigParam &param, const std::string &value, dpyModem::result_handler_function handler)
 
void asyncGetVoiceCallConfig (const std::string &modemid, dpyModemPrivate::voice_call_config_handler_function handler)
 
boost::system::error_code requestVoiceCallOperation (const std::string &simid, const dpyModemPrivate::VoiceCallOperation &operation, const std::string &firstParameter)
 Synchronous Voice call related methods.
 
- Public Member Functions inherited from ModemManager
 ModemManager (std::string ip="127.0.0.1")
 Constructor of the class. More...
 
 ~ModemManager ()
 Destructor of the class.
 
bool isAlive ()
 Method to check if Modem Service is alive. More...
 
void monitorServiceAvailability_S (dpyModem::service_availability_handler_function handler)
 Monitor Modem service availability. More...
 
void monitorServiceAvailability_U ()
 Stop monitoring Modem service availability.
 
void asyncGetModems (dpyModem::modem_list_handler_function handler)
 Method which requests available modems. More...
 
void asyncGetModemInfo (const std::string &modemid, dpyModem::modem_info_handler_function handler)
 Method which requests modem information. More...
 
void asyncGetModemStatus (const std::string &modemid, dpyModem::modem_status_handler_function handler)
 Method which requests modem status. More...
 
void getModemStatusEvents_S (dpyModem::modem_status_handler_function handler)
 Establish the handler that the subscriber will call when a new modem status (coming from any modem) is received. More...
 
void getModemListEvents_S (dpyModem::modem_list_event_handler_function handler)
 Subscribes to modem list events. More...
 
void getModemWarningEvents_S (dpyModem::modem_warning_event_handler_function handler)
 Subscribes to modem warning events. More...
 
void asyncRequestModemOperation (const std::string &modemid, const dpyModem::ModemOperation &operation, dpyModem::result_handler_function handler)
 Query a specific modem to perform a specific operation. More...
 
void asyncIsDataConnectionEnabled (const std::string &modemid, dpyModem::modem_data_connection_status_handler_function handler)
 Query if a specific modem data connection functionalities are enabled or not. More...
 
void asyncForceCustomApn (dpyModem::result_handler_function handler, const bool &force=false, const dpyModem::AccessPointNetwork &custom_apn={})
 Allows to select a specific APN manually ignoring the APN list (disabled by default). By default and, in order to make modem data connection easier for the user, the modem service selects the APN automatically by using a APN list. Making use of this method the user may ignore the list to make sure the custom_apn APN is used. More...
 
void asyncGetInterfaceStatistics (const std::string &modemid, dpyModem::interface_statistics_function_handler)
 Allows to obtain different statistics of the interface related to transmission and reception of packages. More...
 
void asyncForceNetworkMode (const std::string &modemid, dpyModem::NetworkMode mode, dpyModem::result_handler_function handler)
 Force a modem to work under a specific Network Mode (2G,3G,4G,...) More...
 
void asyncGetForcedAPN (dpyModem::forced_apn_handler_function handler)
 Obtain the Forced APN configured on the device. If there is no forced APN, it returns an empty one. More...
 
void asyncGetModemSims (const std::string &modemid, dpyModem::sim_list_handler_function handler)
 Method which requests sims associated with a specific modem. More...
 
void asyncGetActiveSims (const std::string &modemid, dpyModem::sim_list_handler_function handler)
 Method which requests sims being in use for a specific modem. More...
 
void asyncSwitchCurrentSimCard (const std::string &modemid, dpyModem::result_handler_function handler)
 Change current Sim card being used by the specified modem, and start using alternative sim. More...
 
void getCurrentSimSlot (const std::string &modemid, dpyModem::sim_slot_handler_function handler)
 Get current Sim card slot being used by the specified modem. More...
 
void getSimListEvents_S (dpyModem::sim_list_event_handler_function handler)
 Subscribes to sim list events. More...
 
void getSimStatusEvents_S (dpyModem::simStatus_handler_function handler)
 Subscribes to sim status events. More...
 
void getSimStatusEvents_U ()
 Method which requests sims associated with a specific modem. More...
 
void asyncGetSimInfo (const std::string &simid, dpyModem::sim_info_handler_function handler)
 Method which requests modem information. More...
 
void asyncGetSimStatus (const std::string &simid, dpyModem::simStatus_handler_function handler)
 Method which requests sim status. More...
 
void asyncGetApnByImsi (const std::string &imsi, dpyModem::get_apn_by_imsi_handler_function handler)
 Obtain the APN that corresponds to the specified imsi as it would be obtained with the APN list. More...
 
void asyncAddNewApn (const std::string &imsi, const dpyModem::AccessPointNetwork &apn, dpyModem::result_handler_function handler)
 Add a new APN to the APN list being used by the Modem when performing Modem data communications. More...
 
void asyncDeleteApnByImsi (const std::string &imsi, dpyModem::result_handler_function handler)
 Delete a particular APN from the APN list by specifying the IMSI. More...
 
void asyncModifyApnByImsi (const std::string &current_imsi, const dpyModem::AccessPointNetwork &new_apn, dpyModem::result_handler_function handler)
 Modify an existing APN (associated with a specific imsi) in the APN list. More...
 
void asyncForceCustomApn (const std::string &imsi, dpyModem::result_handler_function handler, const bool &force=false, const dpyModem::AccessPointNetwork &custom_apn={})
 Allows to select a specific APN manually ignoring the APN list (disabled by default). By default and, in order to make modem data connection easier for the user, the modem service selects the APN automatically by using a APN list. Making use of this method the user may ignore the list to make sure the custom_apn APN is used. More...
 

Additional Inherited Members

- Protected Attributes inherited from ModemManager
boost::shared_ptr< ModemClientmClient
 Reference to an Client Object.
 

Detailed Description

Remarks
This class should only be used within the Deepsy environment, not from external applications

Member Function Documentation

void asyncGetAllSmsInfo ( const std::string &  simid,
dpyModemPrivate::get_sms_info_handler_function  handler 
)

Asynchronous Sms related methods

void asyncGetCallSourceStatus ( const std::string &  simid,
dpyModemPrivate::call_source_status_handler_function  handler 
)

Asynchronous Voice call related methods

void asyncGetLastVoiceCallInfo ( const std::string &  simid,
dpyModemPrivate::get_sim_call_info_handler_function  handler 
)

Asynchronous Voice call related methods

void asyncGetVoiceCallConfig ( const std::string &  modemid,
dpyModemPrivate::voice_call_config_handler_function  handler 
)

Asynchronous Voice call related methods

void asyncRequestSmsOperation ( const std::string &  simid,
const dpyModemPrivate::SmsOperation operation,
const std::string &  firstParameter,
const std::string &  secondParameter,
dpyModem::result_handler_function  handler 
)

Asynchronous Sms related methods

void asyncRequestVoiceCallOperation ( const std::string &  simid,
const dpyModemPrivate::VoiceCallOperation operation,
const std::string &  firstParameter,
dpyModem::result_handler_function  handler 
)

Asynchronous Voice call related methods

void asyncSetVoiceCallConfig ( const std::string &  modemid,
const dpyModemPrivate::VoiceCallConfigParam param,
const std::string &  value,
dpyModem::result_handler_function  handler 
)

Asynchronous Voice call related methods

void getCallSourceUpdates_S ( dpyModemPrivate::call_source_status_handler_function  handler)

Asynchronous Voice call related methods

void getCallSourceUpdates_U ( )

Asynchronous Voice call related methods

void getSmsEvents_S ( dpyModemPrivate::sms_event_handler_function  handler)

Asynchronous Sms related methods

void getVoiceCallEvents_S ( dpyModemPrivate::voice_call_event_handler_function  handler)

Asynchronous Voice call related methods

void getVoiceCallEvents_U ( )

Asynchronous Voice call related methods