Skip to contentSkip to conversation

test-stk-menu: Extend to support ConfirmOpenchannel method

PATCH In review Philippe Nunes 2 participants 2 messages Apr 8, 2011 – Apr 12, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 5/6 test-stk-menu: Extend to support ConfirmOpenchannel method

---
 test/test-stk-menu |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
test/test-stk-menu +14 -0
index 1fde700..a9f92e8 100755
@@ -208,6 +208,20 @@ class StkAgent(dbus.service.Object):
 		if key == 't':
 			raise EndSession("User wishes to terminate session")
 
+	@dbus.service.method("org.ofono.SimToolkitAgent",
+					in_signature="sy", out_signature="b")
+	def ConfirmOpenChannel(self, info, icon):
+		print "Open channel confirmation: (%s)" % (info)
+		print "Icon: (%d)" % (icon)
+		key = raw_input("Enter Confirmation (t, y, n):")
+
+		if key == 't':
+			raise EndSession("User wishes to terminate session");
+		elif key == 'y':
+			return True
+		else:
+			return False
+
 def property_changed(name, value):
 	print "SimToolKit property: %s changed to '%s'" % (name, value)
 
Signature · 1 line
1.7.1
#1 lore raw

Hi Philippe,

Quoted 4 lines · Philippe Nunes
---
 test/test-stk-menu |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

Patch has been applied, thanks.

Regards,
-Denis