From 88ef20591c6e4c50a7fa70c3540ee71f0dbd4a92 Mon Sep 17 00:00:00 2001 From: Zhigang Li Date: Thu, 2 Dec 2010 17:29:22 +0800 Subject: [PATCH] test: Add support for PlayTone and LoopTone --- test/test-stk-menu | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test-stk-menu b/test/test-stk-menu index 916a527a..94d2d6b4 100755 --- a/test/test-stk-menu +++ b/test/test-stk-menu @@ -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)