From d996ef84f4b31b376ef71dff28181bd859c9b8d7 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 1 Feb 2012 10:00:43 +0100 Subject: iface-modem-messaging: load initial list of SMS parts --- src/mm-iface-modem-messaging.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/mm-iface-modem-messaging.h') diff --git a/src/mm-iface-modem-messaging.h b/src/mm-iface-modem-messaging.h index 09a75830..8aafccf8 100644 --- a/src/mm-iface-modem-messaging.h +++ b/src/mm-iface-modem-messaging.h @@ -20,6 +20,7 @@ #include #include "mm-at-serial-port.h" +#include "mm-sms-part.h" #define MM_TYPE_IFACE_MODEM_MESSAGING (mm_iface_modem_messaging_get_type ()) #define MM_IFACE_MODEM_MESSAGING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_IFACE_MODEM_MESSAGING, MMIfaceModemMessaging)) @@ -49,6 +50,15 @@ struct _MMIfaceModemMessaging { gboolean (*setup_sms_format_finish) (MMIfaceModemMessaging *self, GAsyncResult *res, GError **error); + + /* Load initial SMS parts (async). + * Found parts need to be reported with take_part() */ + void (* load_initial_sms_parts) (MMIfaceModemMessaging *self, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (*load_initial_sms_parts_finish) (MMIfaceModemMessaging *self, + GAsyncResult *res, + GError **error); }; GType mm_iface_modem_messaging_get_type (void); @@ -85,4 +95,9 @@ void mm_iface_modem_messaging_shutdown (MMIfaceModemMessaging *self); void mm_iface_modem_messaging_bind_simple_status (MMIfaceModemMessaging *self, MMCommonSimpleProperties *status); +/* Report new SMS part */ +gboolean mm_iface_modem_messaging_take_part (MMIfaceModemMessaging *self, + MMSmsPart *sms_part, + gboolean received); + #endif /* MM_IFACE_MODEM_MESSAGING_H */ -- cgit v1.2.3