dpySms Namespace Reference

Deepsy SMS 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 > sources)> sms_sources_list_handler_function
 Prototype of the handler function for getting available sms sources. More...
 
typedef boost::function< void(boost::system::error_code, std::string sourceid, ListEvent event)> source_list_event_handler_function
 Prototype of the handler function for subscribing to list events. More...
 
typedef boost::function< void(const bool &available)> service_availability_handler
 Prototype of the handler function used to monitor service availability. More...
 
typedef boost::function< void(boost::system::error_code &ec, dpySms::SmsNotifications notif, const std::string &sms_identifier, const std::string &sms_source)> sms_notif_handler
 Prototype of the handler function for SMS notifications method.
 
typedef boost::function< void(boost::system::error_code &error_code, const std::string &smsid, const dpySms::SmsInformation &smsinfo)> sms_info_handler
 Prototype of the handler function to obtain a single SMS.
 
typedef boost::function< void(boost::system::error_code &ec, std::map< std::string, dpySms::SmsInformation > &smsList)> sms_list_handler
 Prototype of the handler function to obtain SMS list.
 
typedef boost::function< void(boost::system::error_code &error_code)> result_handler_function
 Prototype of the handler function to obtain a single SMS.
 
typedef boost::function< void(boost::system::error_code &error_code)> command_request_handler
 Prototype of the handler function to obtain a single SMS.
 
typedef boost::function< void(boost::system::error_code &error_code, const std::string &smsid)> send_sms_handler_function
 Callback handler used when sending sms. More...
 
typedef boost::function< void(boost::system::error_code, std::string smssourceid, SourceStatus event)> source_status_handler_function
 Prototype of the handler function for subscribing to source status events. More...
 

Typedef Documentation

typedef boost::function<void(boost::system::error_code& error_code, const std::string& smsid)> send_sms_handler_function
Parameters
error_codeerror code (if any)
smsidresultant sms identifier
typedef boost::function<void(const bool &available)> service_availability_handler
Parameters
availabletrue if the service is available, false otherwise
typedef boost::function<void(boost::system::error_code, std::list<std::string> sources)> sms_sources_list_handler_function
Parameters
error_codeerror code (if any)
sourceslist of sources id
typedef boost::function<void(boost::system::error_code, std::string sourceid, ListEvent event)> source_list_event_handler_function
Parameters
error_codeerror code (if any)
sourceidvoicecall source id
eventin the list (ADDED,REMOVED)
typedef boost::function<void(boost::system::error_code, std::string smssourceid, SourceStatus event)> source_status_handler_function
Parameters
error_codeerror code (if any)
sourceidsms source id
eventin the list (DISABLED,ENABLED)