diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-13 12:00:37 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-14 07:05:26 +0200 |
commit | e212f6b6edcd2b5678372bd0b05c70209c516f05 (patch) | |
tree | f28a596d95ed494ca667a351b78f42c50b60ab3a /src/mm-sms-list.h | |
parent | 2da9474d0c0e22044d7ab636e3336cab1a75bc22 (diff) |
sms: create SMS parts only when storing or sending
When a user creates an SMS object, we will expose all its properties in DBus
properly, but we will not create the internal list of SMS parts.
The list of SMS parts will be created when the SMS is stored or sent, whatever
comes first. When the message is sent and it was previously stored, the list of
parts is not re-created.
If the message requires multiple parts, the multipart reference is computed as
follows:
* If the SMS was not stored and is being sent, we just use a random number.
* If the SMS is being stored, we will use a multipart reference which is not
being used already in another SMS to the same destination.
Diffstat (limited to 'src/mm-sms-list.h')
-rw-r--r-- | src/mm-sms-list.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mm-sms-list.h b/src/mm-sms-list.h index 16f39e51..b98e71fb 100644 --- a/src/mm-sms-list.h +++ b/src/mm-sms-list.h @@ -82,4 +82,8 @@ gboolean mm_sms_list_delete_sms_finish (MMSmsList *self, GAsyncResult *res, GError **error); +gboolean mm_sms_list_has_local_multipart_reference (MMSmsList *self, + const gchar *number, + guint8 reference); + #endif /* MM_SMS_LIST_H */ |