--- src/stkagent.c | 2 +- test/test-stk-menu | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/src/stkagent.c b/src/stkagent.c index 03b7c87..f3d22ab 100644 --- a/src/stkagent.c +++ b/src/stkagent.c @@ -1037,7 +1037,7 @@ static void confirm_launch_browser_cb(DBusPendingCall *call, void *data) if (dbus_message_get_args(reply, NULL, DBUS_TYPE_BOOLEAN, &confirm, DBUS_TYPE_INVALID) == FALSE) { - ofono_error("Can't parse the reply to ConfirmLaunchBrowser()"); + ofono_error("Can't parse the reply to LaunchBrowser()"); remove_agent = TRUE; goto error; } diff --git a/test/test-stk-menu b/test/test-stk-menu index 673b5bc..995cfef 100755 --- a/test/test-stk-menu +++ b/test/test-stk-menu @@ -157,6 +157,19 @@ class StkAgent(dbus.service.Object): return False @dbus.service.method("org.ofono.SimToolkitAgent", + in_signature="sys", out_signature="b") + def LaunchBrowser(self, info, icon, url): + print "Information: (%s)" % (info) + print "Icon: (%d)" % (icon) + print "URL (%s)" % (url) + key = raw_input("Enter Confirmation (y, n):") + + if key == 'y': + return True + else: + return False + + @dbus.service.method("org.ofono.SimToolkitAgent", in_signature="", out_signature="") def Cancel(self): print "Cancel" -- 1.7.0.4 _______________________________________________ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono