From: Philippe Nunes <philippe.nunes@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH 5/6] test-stk-menu: Extend to support ConfirmOpenchannel method
Date: Fri, 08 Apr 2011 18:33:30 +0200 [thread overview]
Message-ID: <1302280411-20762-5-git-send-email-philippe.nunes@linux.intel.com> (raw)
In-Reply-To: <y>
[-- Attachment #1: Type: text/plain, Size: 930 bytes --]
---
| 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
--git a/test/test-stk-menu b/test/test-stk-menu
index 1fde700..a9f92e8 100755
--- a/test/test-stk-menu
+++ b/test/test-stk-menu
@@ -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)
--
1.7.1
next reply other threads:[~2011-04-08 16:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-08 16:33 Philippe Nunes [this message]
2011-04-12 4:40 ` [PATCH 5/6] test-stk-menu: Extend to support ConfirmOpenchannel method Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1302280411-20762-5-git-send-email-philippe.nunes@linux.intel.com \
--to=philippe.nunes@linux.intel.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox