e_ofono_sms.c File Reference
#include "e_ofono_private.h"

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
◆ e_ofono_sms_sca_get()
Eina_Bool e_ofono_sms_sca_get | ( | const E_Ofono_Element * | element, |
const char ** | sca | ||
) |
Get property "ServiceCenterAddress" value.
- Parameters
-
sca where 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.
◆ e_ofono_sms_sca_set()
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
-
sca value to set. cb function to call when server replies or some error happens. data data 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.
◆ e_ofono_sms_send_message()
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
-
number the destination of the message message text of message body cb function to call when server replies or some error happens. data data 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.