sms: export uncomplete multipart messages as well

Uncompleted multipart SMS will be exported to DBus, where only the "state"
property is valid, so that we allow completely removing those uncompleted
multipart SMS which will never get completed due to one reason or another.
This commit is contained in:
Aleksander Morgado
2012-02-09 12:48:00 +01:00
parent 186584f26f
commit 714e4ca44b
6 changed files with 65 additions and 54 deletions

View File

@@ -228,7 +228,7 @@ handle_list (MmGdbusModemMessaging *skeleton,
gboolean
mm_iface_modem_messaging_take_part (MMIfaceModemMessaging *self,
MMSmsPart *sms_part,
gboolean received)
MMSmsState state)
{
MMSmsList *list = NULL;
GError *error = NULL;
@@ -238,7 +238,7 @@ mm_iface_modem_messaging_take_part (MMIfaceModemMessaging *self,
MM_IFACE_MODEM_MESSAGING_SMS_LIST, &list,
NULL);
g_assert (list != NULL);
added = mm_sms_list_take_part (list, sms_part, received, &error);
added = mm_sms_list_take_part (list, sms_part, state, &error);
if (!added) {
mm_dbg ("Couldn't take part in SMS list: '%s'", error->message);
g_error_free (error);