Open Source Telephony
 help / color / mirror / Atom feed
* [PATCH 4/4] test-stk-menu: Extend to support DisplayAbortableActionInfo
@ 2011-03-28 16:32 Philippe Nunes
  0 siblings, 0 replies; only message in thread
From: Philippe Nunes @ 2011-03-28 16:32 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 834 bytes --]

---
 test/test-stk-menu |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/test/test-stk-menu b/test/test-stk-menu
index 639fe77..6c1774f 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 DisplayAbortableActionInfo(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)
 
-- 
1.7.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-28 16:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-28 16:32 [PATCH 4/4] test-stk-menu: Extend to support DisplayAbortableActionInfo Philippe Nunes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox