lib/ofono/e_ofono_sms.c File Reference
#include "e_ofono_private.h"
Include dependency graph for e_ofono_sms.c:

Functions

Eina_Bool e_ofono_sms_sca_get (const E_Ofono_Element *element, const char **sca)
Eina_Bool e_ofono_sms_sca_set (E_Ofono_Element *element, const char *sca, E_DBus_Method_Return_Cb cb, const void *data)
Eina_Bool e_ofono_sms_send_message (E_Ofono_Element *element, const char *number, const char *message, E_DBus_Method_Return_Cb cb, const void *data)

Function Documentation

Eina_Bool e_ofono_sms_sca_get ( const E_Ofono_Element element,
const char **  sca 
)

Get property "ServiceCenterAddress" value.

Parameters:
scawhere to store the property value, must be a pointer to string (const char **), it will not be allocated or copied and references will be valid until element changes, so copy it if you want to use it later.
Returns:
EINA_TRUE on success, EINA_FALSE otherwise.

References e_ofono_element_property_get_stringshared(), and e_ofono_prop_sca.

Eina_Bool e_ofono_sms_sca_set ( E_Ofono_Element element,
const char *  sca,
E_DBus_Method_Return_Cb  cb,
const void *  data 
)

Call method SetProperty("ServiceCenterAddress", powered) at the given element on server.

Parameters:
scavalue to set.
cbfunction to call when server replies or some error happens.
datadata to give to cb when it is called.
Returns:
EINA_TRUE on success, EINA_FALSE otherwise.

References e_ofono_element_property_set_full(), and e_ofono_prop_sca.

Eina_Bool e_ofono_sms_send_message ( E_Ofono_Element element,
const char *  number,
const char *  message,
E_DBus_Method_Return_Cb  cb,
const void *  data 
)

Send SMS message.

Call method SendMessage(number, text) to send a new SMS message.

Parameters:
numberthe destination of the message
messagetext of message body
cbfunction to call when server replies or some error happens.
datadata to give to cb when it is called.
Returns:
EINA_TRUE on success, EINA_FALSE otherwise.

References _E_Ofono_Element::_pending, e_ofono_element_message_send(), e_ofono_iface_sms, e_ofono_method_send_sms, e_ofono_system_bus_name_get(), _E_Ofono_Element::interface, _E_Ofono_Element::path, and _E_Ofono_Element::send_sms.