summaryrefslogtreecommitdiffstats
path: root/test/test-stk-menu
diff options
context:
space:
mode:
authorPhilippe Nunes <philippe.nunes@linux.intel.com>2011-03-30 12:27:44 +0200
committerDenis Kenzior <denkenz@gmail.com>2011-03-30 12:07:49 -0500
commit1f7cd4393f3f2b84055ce5da1ae8e37d7e57a150 (patch)
treef88ff461e35546185163b1319eb6beb40813a0b6 /test/test-stk-menu
parent5ba49490c807002f9f5ffdbc30589f5783dd633a (diff)
downloadofono-1f7cd4393f3f2b84055ce5da1ae8e37d7e57a150.tar.bz2
test: Add DisplayAction method in test-stk-menu
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 639fe77d..1fde700e 100755
--- a/test/test-stk-menu
+++ b/test/test-stk-menu
@@ -198,6 +198,16 @@ class StkAgent(dbus.service.Object):
print "Text: %s" % (text)
print "Icon: %d" % (icon)
+ @dbus.service.method("org.ofono.SimToolkitAgent",
+ in_signature="sy", out_signature="")
+ def DisplayAction(self, text, icon):
+ print "Text: (%s)" % (text)
+ print "Icon: (%d)" % (icon)
+ key = raw_input("Press 't' to terminate the session ")
+
+ if key == 't':
+ raise EndSession("User wishes to terminate session")
+
def property_changed(name, value):
print "SimToolKit property: %s changed to '%s'" % (name, value)