From 9afdf1a35bbf298c1881fc57688199c8eb3ec116 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 5 Nov 2009 16:46:43 -0600 Subject: Add SMS history capability --- include/history.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include/history.h') diff --git a/include/history.h b/include/history.h index afb4f168..28109f6c 100644 --- a/include/history.h +++ b/include/history.h @@ -29,6 +29,12 @@ extern "C" { enum ofono_disconnect_reason; struct ofono_call; +enum ofono_history_sms_status { + OFONO_HISTORY_SMS_STATUS_PENDING, + OFONO_HISTORY_SMS_STATUS_SUBMITTED, + OFONO_HISTORY_SMS_STATUS_SUBMIT_FAILED, +}; + struct ofono_history_context { struct ofono_history_driver *driver; struct ofono_modem *modem; @@ -44,6 +50,16 @@ struct ofono_history_driver { time_t start, time_t end); void (*call_missed)(struct ofono_history_context *context, const struct ofono_call *call, time_t when); + void (*sms_received)(struct ofono_history_context *context, + unsigned int msg_id, const char *from, + const struct tm *remote, const struct tm *local, + const char *text); + void (*sms_send_pending)(struct ofono_history_context *context, + unsigned int id, const char *to, + time_t when, const char *text); + void (*sms_send_status)(struct ofono_history_context *context, + unsigned int id, time_t when, + enum ofono_history_sms_status status); }; int ofono_history_driver_register(const struct ofono_history_driver *driver); -- cgit v1.2.3