From: Philippe Nunes <philippe.nunes@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH v2 2/2] phonesim: Add GET_INPUT test case
Date: Tue, 28 Aug 2012 15:24:58 +0200 [thread overview]
Message-ID: <1346160298-11307-2-git-send-email-philippe.nunes@linux.intel.com> (raw)
In-Reply-To: <1346160298-11307-1-git-send-email-philippe.nunes@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 2190 bytes --]
This test case is used to check the immediate digit response flag.
---
src/conformancesimapplication.cpp | 25 ++++++++++++++++++++-----
1 file changed, 20 insertions(+), 5 deletions(-)
diff --git a/src/conformancesimapplication.cpp b/src/conformancesimapplication.cpp
index baf3538..a2bd3af 100644
--- a/src/conformancesimapplication.cpp
+++ b/src/conformancesimapplication.cpp
@@ -81,11 +81,12 @@ const QString ConformanceSimApplication::getName()
#define GetInkeyMenu_Cyrillic_Display_2 4
#define GetInkeyMenu_Cyrillic_Entry 5
#define GetInkeyMenu_YesNo_Response 6
-#define GetInkeyMenu_Icon 7
-#define GetInkeyMenu_Help 8
-#define GetInkeyMenu_Variable_Timeout 9
-#define GetInkeyMenu_Text_Attribute 10
-#define GetInkeyMenu_Main 11
+#define GetInkeyMenu_ImmediateResponse 7
+#define GetInkeyMenu_Icon 8
+#define GetInkeyMenu_Help 9
+#define GetInkeyMenu_Variable_Timeout 10
+#define GetInkeyMenu_Text_Attribute 11
+#define GetInkeyMenu_Main 12
#define GetInputMenu_Normal 1
#define GetInputMenu_No_Response 2
@@ -677,6 +678,10 @@ void ConformanceSimApplication::sendGetInkeyMenu()
item.setLabel( "Yes/No response for the input" );
items += item;
+ item.setIdentifier( GetInkeyMenu_ImmediateResponse );
+ item.setLabel( "Immediate response for the digit input" );
+ items += item;
+
item.setIdentifier( GetInkeyMenu_Icon );
item.setLabel( "Display of icon" );
items += item;
@@ -887,6 +892,16 @@ void ConformanceSimApplication::GetInkeyMenu( const QSimTerminalResponse& resp )
}
break;
+ case GetInkeyMenu_ImmediateResponse:
+ {
+ cmd.setType( QSimCommand::GetInkey );
+ cmd.setDestinationDevice( QSimCommand::ME );
+ cmd.setWantImmediateResponse( true );
+ cmd.setText( "Enter 1" );
+ command( cmd, this, SLOT(sendGetInkeyMenu()) );
+ }
+ break;
+
case GetInkeyMenu_Icon:
{
sendGetInkeyIconMenu();
--
1.7.9.5
next prev parent reply other threads:[~2012-08-28 13:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-28 13:24 [PATCH v2 1/2] phonesim: Add methods to handle the 'immediate digit response' flag Philippe Nunes
2012-08-28 13:24 ` Philippe Nunes [this message]
2012-08-28 14:35 ` [PATCH v2 2/2] phonesim: Add GET_INPUT test case Denis Kenzior
2012-08-28 14:34 ` [PATCH v2 1/2] phonesim: Add methods to handle the 'immediate digit response' flag 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=1346160298-11307-2-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