Open Source Telephony
 help / color / mirror / Atom feed
* [PATCH 1/3] test: Update with RequestQuickDigit API
@ 2012-09-06 14:38 Philippe Nunes
  2012-09-06 14:38 ` [PATCH 2/3] test: playtone waits for single tone playback Philippe Nunes
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Philippe Nunes @ 2012-09-06 14:38 UTC (permalink / raw)
  To: ofono

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

---
 test/test-stk-menu |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/test/test-stk-menu b/test/test-stk-menu
index a9f92e8..6e7f7b7 100755
--- a/test/test-stk-menu
+++ b/test/test-stk-menu
@@ -127,6 +127,20 @@ class StkAgent(dbus.service.Object):
 			return key
 
 	@dbus.service.method("org.ofono.SimToolkitAgent",
+				in_signature="sy", out_signature="s")
+	def RequestQuickDigit(self, title, icon):
+		print "Title: (%s)" % (title)
+		print "Icon: (%d)" % (icon)
+		key = raw_input("Quick digit (0-9, *, #, t, b):")
+
+		if key == 'b':
+			raise GoBack("User wishes to go back");
+		elif key == 't':
+			raise EndSession("User wishes to terminate session");
+		else:
+			return key
+
+	@dbus.service.method("org.ofono.SimToolkitAgent",
 				in_signature="sy", out_signature="b")
 	def RequestConfirmation(self, title, icon):
 		print "Title: (%s)" % (title)
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-09-12  4:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-06 14:38 [PATCH 1/3] test: Update with RequestQuickDigit API Philippe Nunes
2012-09-06 14:38 ` [PATCH 2/3] test: playtone waits for single tone playback Philippe Nunes
2012-09-06 14:38 ` [PATCH 3/3] test: iconId value is not a printable character Philippe Nunes
2012-09-12  4:27 ` [PATCH 1/3] test: Update with RequestQuickDigit API Denis Kenzior

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