Sms Class Reference
Allows to interact with the SMS service. More...
#include <smsApi.h>
Inheritance diagram for Sms:

Public Member Functions | |
| Sms (std::string ip="127.0.0.1") | |
| bool | isAlive () |
| void | monitorServiceAvailability_S (dpySms::service_availability_handler handler) |
| void | monitorServiceAvailability_U () |
| void | monitorSourcesStatusEvents_S (dpySms::source_status_handler_function handler) |
| Subscribes to sms sources status events. More... | |
| void | monitorSourcesStatusEvents_U () |
| Unsubscribes to sms sources status events. | |
| void | asyncGetSmsSources (dpySms::sms_sources_list_handler_function handler) |
| Method which requests available sms sources. More... | |
| void | asyncGetSmsSourceStatus (std::string sourceid, dpySms::source_status_handler_function handler) |
| Method which requests available sms sources. More... | |
| void | smsSourceListEvent_S (dpySms::source_list_event_handler_function handler) |
| Subscribes to sms source list events. More... | |
| void | getSmsNotifications_S (dpySms::sms_notif_handler handler) |
| void | getSmsNotifications_U () |
| void | asyncGetSmsInfo (const std::string &smsid, dpySms::sms_info_handler handler) |
| void | asyncGetSmsList (dpySms::sms_list_handler handler) |
| void | asyncSendSms (const std::string &sourceid, const std::string &content, const std::string &destination, dpySms::send_sms_handler_function handler) |
| void | asyncDeleteSms (const int &sms_id, dpySms::command_request_handler handler) |
| void | asyncDeleteSms (const std::string &smsid, dpySms::result_handler_function handler) |
| Sms (const std::string &sourceid, const dpySms::SmsInformation &info) | |
Static Public Member Functions | |
| static boost::system::error_code | fromJson (const rapidjson::Value &jsonSms, const std::string &localSourceId, const std::string &smsid, boost::shared_ptr< Sms > &resultSms) |
| static void | setSmsCounter (int smsCounter) |
| static int | getSmsCounter () |
Detailed Description
Represents a Sms in the Sms system.
Member Function Documentation
| void asyncGetSmsSources | ( | dpySms::sms_sources_list_handler_function | handler | ) |
- Parameters
-
handler Handler to be called when a response comes from the service
| void asyncGetSmsSourceStatus | ( | std::string | sourceid, |
| dpySms::source_status_handler_function | handler | ||
| ) |
- Parameters
-
sourceid identifier of the source handler Handler to be called when a response comes from the service
| void monitorSourcesStatusEvents_S | ( | dpySms::source_status_handler_function | handler | ) |
- Parameters
-
handler Handler to be called when a new source status event comes from the service
| void smsSourceListEvent_S | ( | dpySms::source_list_event_handler_function | handler | ) |
- Parameters
-
handler Handler to be called when a new sms source list event comes from the service
