mirror of git://git.sysmocom.de/ofono
test: Add support for PlayTone and LoopTone
This commit is contained in:
parent
f177fcfb33
commit
88ef20591c
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue