diff options
author | Philippe Nunes <philippe.nunes@linux.intel.com> | 2011-04-08 18:33:30 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-04-11 23:28:26 -0500 |
commit | 10779026949f57f23d5110e161c7890671be2c3f (patch) | |
tree | 251a1451b03f3a3e03b9abb15e08274b90e9a8bc /test/test-stk-menu | |
parent | 8cb9e8ed7b5152d6ba9478d29699e6bda8d20889 (diff) | |
download | ofono-10779026949f57f23d5110e161c7890671be2c3f.tar.bz2 |
test: Add ConfirmOpenChannel to test-stk-menu
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 1fde700e..a9f92e8e 100755 --- a/test/test-stk-menu +++ b/test/test-stk-menu @@ -208,6 +208,20 @@ class StkAgent(dbus.service.Object): if key == 't': raise EndSession("User wishes to terminate session") + @dbus.service.method("org.ofono.SimToolkitAgent", + in_signature="sy", out_signature="b") + def ConfirmOpenChannel(self, info, icon): + print "Open channel confirmation: (%s)" % (info) + print "Icon: (%d)" % (icon) + key = raw_input("Enter Confirmation (t, y, n):") + + if key == 't': + raise EndSession("User wishes to terminate session"); + elif key == 'y': + return True + else: + return False + def property_changed(name, value): print "SimToolKit property: %s changed to '%s'" % (name, value) |