summaryrefslogtreecommitdiff
path: root/src/mm-sms-part.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-09-13 12:00:37 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-09-14 07:05:26 +0200
commite212f6b6edcd2b5678372bd0b05c70209c516f05 (patch)
treef28a596d95ed494ca667a351b78f42c50b60ab3a /src/mm-sms-part.h
parent2da9474d0c0e22044d7ab636e3336cab1a75bc22 (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-part.h')
-rw-r--r--src/mm-sms-part.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mm-sms-part.h b/src/mm-sms-part.h
index 9b75ef14..4517a7a7 100644
--- a/src/mm-sms-part.h
+++ b/src/mm-sms-part.h
@@ -138,6 +138,7 @@ guint mm_sms_part_encode_address (const gchar *address,
gchar **mm_sms_part_util_split_text (const gchar *text,
MMSmsEncoding *encoding);
-GByteArray **mm_sms_part_util_split_data (const GByteArray *data);
+GByteArray **mm_sms_part_util_split_data (const guint8 *data,
+ gsize data_len);
#endif /* MM_SMS_PART_H */