mirror of git://git.sysmocom.de/ofono
test: Add support for launch browser command
This commit is contained in:
parent
aa9a9d095d
commit
3f880cfe88
|
@ -156,6 +156,19 @@ class StkAgent(dbus.service.Object):
|
|||
else:
|
||||
return False
|
||||
|
||||
@dbus.service.method("org.ofono.SimToolkitAgent",
|
||||
in_signature="sys", out_signature="b")
|
||||
def ConfirmLaunchBrowser(self, info, icon, url):
|
||||
print "Information: (%s)" % (info)
|
||||
print "Icon: (%d)" % (icon)
|
||||
print "URL (%s)" % (url)
|
||||
key = raw_input("Enter Confirmation (y, n):")
|
||||
|
||||
if key == 'y':
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
@dbus.service.method("org.ofono.SimToolkitAgent",
|
||||
in_signature="", out_signature="")
|
||||
def Cancel(self):
|
||||
|
|
Loading…
Reference in New Issue