aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Nunes <philippe.nunes@linux.intel.com>2012-08-28 15:24:58 +0200
committerDenis Kenzior <denkenz@gmail.com>2012-08-28 09:33:26 -0500
commitffc6f37ff0c27f7df8dc72014df9c574e2359ca6 (patch)
tree3dc3d186650f86e9f3e428c386b1df1739e8573a
parentb75da7af7a54ee015a5051ceee0cfeee5e84a882 (diff)
downloadphonesim-ffc6f37ff0c27f7df8dc72014df9c574e2359ca6.tar.gz
phonesim: Add GET_INPUT test case
This test case is used to check the immediate digit response flag.
-rw-r--r--src/conformancesimapplication.cpp25
1 files 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();