aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-sms.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-04-03 16:30:48 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-04-05 17:48:51 +0200
commitf9105bff875ae0e7263718a317e156948957a6d0 (patch)
tree417299f51a7d17d7d5bd30692fd7b5ffd98092de /libmm-glib/mm-sms.h
parent372a49bbf661c95110852c86df54008a7bad2774 (diff)
api,introspection: update 'Validity' property in the SMS interface
We don't want to support only 'relative' validity, so don't assume that the Validity property will always be a uint32 value. Instead, we define the Validity propery as '(uv)' tuple, where the first value (a MMSmsValidityType) specifies the type of validity, and the second value is a variant formatted accordingly to what the validity type specifies (e.g. a uint32 value if the type is MM_SMS_VALIDITY_TYPE_RELATIVE).
Diffstat (limited to 'libmm-glib/mm-sms.h')
-rw-r--r--libmm-glib/mm-sms.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmm-glib/mm-sms.h b/libmm-glib/mm-sms.h
index 6cfb5b78..cb5b2b9d 100644
--- a/libmm-glib/mm-sms.h
+++ b/libmm-glib/mm-sms.h
@@ -86,7 +86,8 @@ gchar *mm_sms_dup_timestamp (MMSms *self);
const gchar *mm_sms_get_discharge_timestamp (MMSms *self);
gchar *mm_sms_dup_discharge_timestamp (MMSms *self);
-guint mm_sms_get_validity (MMSms *self);
+MMSmsValidityType mm_sms_get_validity_type (MMSms *self);
+guint mm_sms_get_validity_relative (MMSms *self);
guint mm_sms_get_class (MMSms *self);