From 939fc1273ccd1637dbba798943fa3343f4618426 Mon Sep 17 00:00:00 2001 From: Andrzej Zaborowski Date: Wed, 4 Aug 2010 06:55:01 +0200 Subject: stkagent: Implement RequestConfirmation/Key/Digit --- src/stkagent.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/stkagent.h') diff --git a/src/stkagent.h b/src/stkagent.h index d9e79dcb..8b9a9315 100644 --- a/src/stkagent.h +++ b/src/stkagent.h @@ -50,6 +50,13 @@ typedef void (*stk_agent_display_text_cb)(enum stk_agent_result result, typedef void (*stk_agent_selection_cb)(enum stk_agent_result result, uint8_t id, void *user_data); +typedef void (*stk_agent_confirmation_cb)(enum stk_agent_result result, + ofono_bool_t confirm, + void *user_data); + +typedef void (*stk_agent_string_cb)(enum stk_agent_result result, + char *string, void *user_data); + struct stk_agent *stk_agent_new(const char *path, const char *sender, ofono_bool_t remove_on_terminate); @@ -76,5 +83,22 @@ int stk_agent_display_text(struct stk_agent *agent, const char *text, void *user_data, ofono_destroy_func destroy, int timeout); +int stk_agent_request_confirmation(struct stk_agent *agent, + const char *text, uint8_t icon_id, + stk_agent_confirmation_cb cb, + void *user_data, + ofono_destroy_func destroy, + int timeout); + +int stk_agent_request_digit(struct stk_agent *agent, + const char *text, uint8_t icon_id, + stk_agent_string_cb cb, void *user_data, + ofono_destroy_func destroy, int timeout); + +int stk_agent_request_key(struct stk_agent *agent, const char *text, + uint8_t icon_id, ofono_bool_t unicode_charset, + stk_agent_string_cb cb, void *user_data, + ofono_destroy_func destroy, int timeout); + void append_menu_items_variant(DBusMessageIter *iter, const struct stk_menu_item *items); -- cgit v1.2.3