test: Update with RequestQuickDigit API
authorPhilippe Nunes <philippe.nunes@linux.intel.com>
Thu, 6 Sep 2012 14:38:45 +0000 (16:38 +0200)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 12 Sep 2012 04:27:14 +0000 (23:27 -0500)
test/test-stk-menu

index a9f92e8..6e7f7b7 100755 (executable)
@@ -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)