modemApi.h File Reference
#include <boost/function.hpp>
#include <boost/system/error_code.hpp>
#include <map>
#include <vector>
#include "iModemList.h"
#include "networking.h"
Include dependency graph for modemApi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ModemManager
 Allows to interact with Modem Service. More...
 

Namespaces

 dpyModem
 Deepsy Modem namespace that includes the different enums, structs or method signatures that should be used.
 

Typedefs

typedef 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. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef 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. More...
 
typedef boost::function< void(const bool &available)> service_availability_handler_function
 Prototype of the handler function used to monitor service availability. More...
 
typedef boost::function< void(boost::system::error_code &ec, ModemWarning warning_notif)> warning_handler_function
 Prototype of the handler function for getModemNotifications_S method.
 
typedef boost::function< void(boost::system::error_code error_code, MODEM_INFO type, const std::string &value)> get_info_handler_function
 Prototype of the handler function for getModemInfo method.
 
typedef boost::function< void(boost::system::error_code error_code, const AccessPointNetwork &apn_info, const bool &forced_apn)> get_apn_handler_function
 Prototype of the handler function for obtaining apn information (getCurrentApn or getApnByImsi methods)
 
typedef 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 methods)
 
typedef boost::function< void(boost::system::error_code error_code)> result_handler_function
 Prototype of the handler function for obtaining result of the different operations.
 
typedef boost::function< void(boost::system::error_code error_code, const bool &enabled)> data_connection_status_handler_function
 Prototype of the handler function for isDataConnectionEnabled method.
 
typedef 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.
 
typedef 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. More...
 
typedef 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. More...
 

Enumerations

enum  MODEM_INFO {
  MANUFACTURER, MODEL, FW_VERSION, IMEI,
  SIM_IMSI, SIM_ICCID, SIM_OPERATOR, SIM_APN
}
 Defines the possible information that can be queried. More...
 
enum  ModemOperation {
  DISABLE, ENABLE, SLEEP, SW_RESTART,
  HW_RESTART, DISABLE_DATA_CONNECTION, ENABLE_DATA_CONNECTION
}
 Defines the possible operations that can be queried to a modem. More...