test: Add support for PlayTone and LoopTone
authorZhigang Li <zhigang.li@intel.com>
Thu, 2 Dec 2010 09:29:22 +0000 (17:29 +0800)
committerDenis Kenzior <denkenz@gmail.com>
Thu, 2 Dec 2010 14:01:13 +0000 (08:01 -0600)
test/test-stk-menu

index 916a527..94d2d6b 100755 (executable)
@@ -138,6 +138,16 @@ class StkAgent(dbus.service.Object):
        def Cancel(self):
                print "Cancel"
 
+       @dbus.service.method("org.ofono.SimToolkitAgent",
+                                       in_signature="ssy", out_signature="")
+       def PlayTone(self, tone, text, icon):
+               print "playtone is %s" % (tone)
+
+        @dbus.service.method("org.ofono.SimToolkitAgent",
+                                in_signature="ssy", out_signature="")
+        def LoopTone(self, tone, text, icon):
+                print "the loop tone is %s" % (tone)
+
 if __name__ == '__main__':
        dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)