diff options
author | Philippe Nunes <philippe.nunes@linux.intel.com> | 2012-09-06 16:38:45 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-09-11 23:27:14 -0500 |
commit | 5fa986eaab0016eec70b1d2805a7b940a7e8dda8 (patch) | |
tree | 4e3db00bd5b333369f8b01e9695e9601a26efd3f /test/test-stk-menu | |
parent | b274e74102c7a4b96c06dba895cf0cb444fa54c3 (diff) | |
download | ofono-5fa986eaab0016eec70b1d2805a7b940a7e8dda8.tar.bz2 |
test: Update with RequestQuickDigit API
Diffstat (limited to 'test/test-stk-menu')
-rwxr-xr-x | test/test-stk-menu | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ -127,6 +127,20 @@ class StkAgent(dbus.service.Object): 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): print "Title: (%s)" % (title) |