diff options
author | Philippe Nunes <philippe.nunes@linux.intel.com> | 2012-08-28 15:21:21 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-08-30 16:55:36 -0500 |
commit | 0a9a566065bfecf20d97f694f582d2378da85253 (patch) | |
tree | fbf20dc9c60d3ec9c59fa806cd2103edd4422c75 | |
parent | e5f2701e50ba304f0b39d7e758b57e4aa9abead5 (diff) | |
download | ofono-0a9a566065bfecf20d97f694f582d2378da85253.tar.bz2 |
stk: Ask for immediate digit response as required
This is done by using the stk_agent_request_quick_digit function
introduced in the previous commit.
-rw-r--r-- | src/stk.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1522,9 +1522,9 @@ static gboolean handle_command_get_inkey(const struct stk_command *cmd, gboolean alphabet = (qualifier & (1 << 0)) != 0; gboolean ucs2 = (qualifier & (1 << 1)) != 0; gboolean yesno = (qualifier & (1 << 2)) != 0; + gboolean immediate = (qualifier & (1 << 3)) != 0; /* - * Note: immediate response and help parameter values are not - * provided by current api. + * Note: help parameter value is not provided by current api. */ int err; @@ -1548,6 +1548,11 @@ static gboolean handle_command_get_inkey(const struct stk_command *cmd, &gi->icon_id, ucs2, request_key_cb, stk, NULL, timeout); + else if (immediate) + err = stk_agent_request_quick_digit(stk->current_agent, + text, &gi->icon_id, + request_key_cb, stk, + NULL, timeout); else err = stk_agent_request_digit(stk->current_agent, text, &gi->icon_id, request_key_cb, |