diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-11 15:41:53 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-14 07:05:25 +0200 |
commit | 4f1991e2bab533176d0e720aee0bbe7ce755cc21 (patch) | |
tree | de65dd1f1b2b3c91d4ec1c378763fb4e83753c8b /src/mm-sms-qmi.c | |
parent | 320984a4a00b886a7c6b61aa48413900efe56e86 (diff) | |
download | ModemManager-4f1991e2bab533176d0e720aee0bbe7ce755cc21.tar.gz |
api: new `MessageReference' property in the SMS interface
Message reference allows to match a sent SMS with its corresponding delivery
report, if requested.
Diffstat (limited to 'src/mm-sms-qmi.c')
-rw-r--r-- | src/mm-sms-qmi.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mm-sms-qmi.c b/src/mm-sms-qmi.c index e60e70e13..278a0040a 100644 --- a/src/mm-sms-qmi.c +++ b/src/mm-sms-qmi.c @@ -262,6 +262,7 @@ send_generic_ready (QmiClientWms *client, { QmiMessageWmsRawSendOutput *output = NULL; GError *error = NULL; + guint16 message_id; output = qmi_client_wms_raw_send_finish (client, res, &error); if (!output) { @@ -294,6 +295,10 @@ send_generic_ready (QmiClientWms *client, return; } + if (qmi_message_wms_raw_send_output_get_message_id (output, &message_id, NULL)) + mm_sms_part_set_message_reference ((MMSmsPart *)ctx->current->data, + message_id); + qmi_message_wms_raw_send_output_unref (output); /* Go on with next part */ @@ -350,6 +355,7 @@ send_from_storage_ready (QmiClientWms *client, { QmiMessageWmsSendFromMemoryStorageOutput *output = NULL; GError *error = NULL; + guint16 message_id; output = qmi_client_wms_send_from_memory_storage_finish (client, res, &error); if (!output) { @@ -405,6 +411,10 @@ send_from_storage_ready (QmiClientWms *client, return; } + if (qmi_message_wms_send_from_memory_storage_output_get_message_id (output, &message_id, NULL)) + mm_sms_part_set_message_reference ((MMSmsPart *)ctx->current->data, + message_id); + qmi_message_wms_send_from_memory_storage_output_unref (output); /* Go on with next part */ |