summaryrefslogtreecommitdiffstats
path: root/src/stkagent.h
diff options
context:
space:
mode:
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>2010-08-04 06:55:01 +0200
committerDenis Kenzior <denkenz@gmail.com>2010-08-04 14:13:06 -0500
commit939fc1273ccd1637dbba798943fa3343f4618426 (patch)
treeb1bc7278afb7b503fb9988593da20e3d526da0b6 /src/stkagent.h
parent21c453d43a2312c5516c2a4cc141276578a909d7 (diff)
downloadofono-939fc1273ccd1637dbba798943fa3343f4618426.tar.bz2
stkagent: Implement RequestConfirmation/Key/Digit
Diffstat (limited to 'src/stkagent.h')
-rw-r--r--src/stkagent.h24
1 files changed, 24 insertions, 0 deletions
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);