From 5fa986eaab0016eec70b1d2805a7b940a7e8dda8 Mon Sep 17 00:00:00 2001 From: Philippe Nunes Date: Thu, 6 Sep 2012 16:38:45 +0200 Subject: test: Update with RequestQuickDigit API --- test/test-stk-menu | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test') diff --git a/test/test-stk-menu b/test/test-stk-menu index a9f92e8e..6e7f7b78 100755 --- a/test/test-stk-menu +++ b/test/test-stk-menu @@ -126,6 +126,20 @@ class StkAgent(dbus.service.Object): else: return key + @dbus.service.method("org.ofono.SimToolkitAgent", + in_signature="sy", out_signature="s") + def RequestQuickDigit(self, title, icon): + print "Title: (%s)" % (title) + print "Icon: (%d)" % (icon) + key = raw_input("Quick digit (0-9, *, #, t, b):") + + if key == 'b': + raise GoBack("User wishes to go back"); + elif key == 't': + raise EndSession("User wishes to terminate session"); + else: + return key + @dbus.service.method("org.ofono.SimToolkitAgent", in_signature="sy", out_signature="b") def RequestConfirmation(self, title, icon): -- cgit v1.2.3