summaryrefslogtreecommitdiffstats
path: root/test/test-stk-menu
diff options
context:
space:
mode:
authorZhigang Li <zhigang.li@intel.com>2010-12-02 17:29:22 +0800
committerDenis Kenzior <denkenz@gmail.com>2010-12-02 08:01:13 -0600
commit88ef20591c6e4c50a7fa70c3540ee71f0dbd4a92 (patch)
treef31b7e2df761e1691df48c036b85118d339f9c92 /test/test-stk-menu
parentf177fcfb3315f5616b0bf77416b09e9d8a7f861a (diff)
downloadofono-88ef20591c6e4c50a7fa70c3540ee71f0dbd4a92.tar.bz2
test: Add support for PlayTone and LoopTone
Diffstat (limited to 'test/test-stk-menu')
-rwxr-xr-xtest/test-stk-menu10
1 files changed, 10 insertions, 0 deletions
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)