diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-12 12:34:43 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-14 07:05:26 +0200 |
commit | fbe01c8d6a22cb95ff74ddefc907e663cdeee710 (patch) | |
tree | b63a0c99673a3f8e47c92b82c3f0d31889979a95 /src/mm-sms-part.h | |
parent | 15be01d4fac9c761411f23903df5c0d6c2360424 (diff) |
sms: 'Text' and 'Data' will never be given at the same time
When receiving an SMS, if the encoding is either GSM7 or UCS2, we will treat the
contents of the SMS as text; and if the encoding is either 8BIT or unknown, we
will just dump the contents of the SMS as data.
When creating an SMS, the user is not allowed to give both text and data, only
one can be given. We will use by default 8BIT when data is given, and guess the
best encoding if text is given.
Note that it's still possible to have SMS with neither text nor data, as in
delivery status reports.
This commit also handles the split of the input data in order to make it fit
into singlepart or multipart messages.
Diffstat (limited to 'src/mm-sms-part.h')
-rw-r--r-- | src/mm-sms-part.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mm-sms-part.h b/src/mm-sms-part.h index 60e9b71e..9b75ef14 100644 --- a/src/mm-sms-part.h +++ b/src/mm-sms-part.h @@ -138,4 +138,6 @@ 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); + #endif /* MM_SMS_PART_H */ |