sms-part: include validity
This commit is contained in:
@@ -222,6 +222,7 @@ struct _MMSmsPart {
|
||||
GByteArray *data;
|
||||
guint data_coding_scheme;
|
||||
guint class;
|
||||
guint validity;
|
||||
|
||||
gboolean should_concat;
|
||||
guint concat_reference;
|
||||
@@ -290,6 +291,8 @@ PART_GET_FUNC (guint, data_coding_scheme)
|
||||
PART_SET_UINT_FUNC (data_coding_scheme)
|
||||
PART_GET_FUNC (guint, class)
|
||||
PART_SET_UINT_FUNC (class)
|
||||
PART_GET_FUNC (guint, validity)
|
||||
PART_SET_UINT_FUNC (validity)
|
||||
|
||||
PART_GET_FUNC (guint, concat_reference)
|
||||
|
||||
|
||||
@@ -69,6 +69,10 @@ guint mm_sms_part_get_class (MMSmsPart *part);
|
||||
void mm_sms_part_set_class (MMSmsPart *part,
|
||||
guint class);
|
||||
|
||||
guint mm_sms_part_get_validity (MMSmsPart *part);
|
||||
void mm_sms_part_set_validity (MMSmsPart *part,
|
||||
guint validity);
|
||||
|
||||
guint mm_sms_part_get_concat_reference (MMSmsPart *part);
|
||||
void mm_sms_part_set_concat_reference (MMSmsPart *part,
|
||||
guint concat_reference);
|
||||
|
||||
@@ -360,6 +360,7 @@ assemble_sms (MMSms *self,
|
||||
"class", mm_sms_part_get_class (first),
|
||||
"to", mm_sms_part_get_number (first),
|
||||
"timestamp", mm_sms_part_get_timestamp (first),
|
||||
"validity", mm_sms_part_get_validity (first),
|
||||
NULL);
|
||||
g_free (fulltext);
|
||||
g_free (textparts);
|
||||
|
||||
Reference in New Issue
Block a user