diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-02-01 10:00:43 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:59 +0100 |
commit | d996ef84f4b31b376ef71dff28181bd859c9b8d7 (patch) | |
tree | 6c787232e1303d093e50b4139e57423bcc18b2a2 /src/mm-iface-modem-messaging.h | |
parent | 9079d660a52744f1d53a2d50d96d057775a4f86c (diff) |
iface-modem-messaging: load initial list of SMS parts
Diffstat (limited to 'src/mm-iface-modem-messaging.h')
-rw-r--r-- | src/mm-iface-modem-messaging.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 <gio/gio.h> #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 */ |