diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-11-05 16:46:43 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-11-05 16:46:43 -0600 |
commit | 9afdf1a35bbf298c1881fc57688199c8eb3ec116 (patch) | |
tree | ecd56d527f7e6237e7567ca09e5973a5c5074f37 /include/history.h | |
parent | 61260c298fc7814f06d589029c2cef5f8a3d218c (diff) | |
download | ofono-9afdf1a35bbf298c1881fc57688199c8eb3ec116.tar.bz2 |
Add SMS history capability
Diffstat (limited to 'include/history.h')
-rw-r--r-- | include/history.h | 16 |
1 files changed, 16 insertions, 0 deletions
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); |