aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Nunes <philippe.nunes@linux.intel.com>2012-08-28 15:24:57 +0200
committerDenis Kenzior <denkenz@gmail.com>2012-08-28 09:32:18 -0500
commitb75da7af7a54ee015a5051ceee0cfeee5e84a882 (patch)
treebd79b0b70cb0a1ccb3863c6aee9682004c3e4422
parent96e77e9a01933c51bea318adb1154aeb78aeccf8 (diff)
downloadphonesim-b75da7af7a54ee015a5051ceee0cfeee5e84a882.tar.gz
stk: Add setter/getter for immediate response flag
-rw-r--r--src/qsimcommand.cpp30
-rw-r--r--src/qsimcommand.h3
2 files changed, 33 insertions, 0 deletions
diff --git a/src/qsimcommand.cpp b/src/qsimcommand.cpp
index f5dbdf2..97e0b28 100644
--- a/src/qsimcommand.cpp
+++ b/src/qsimcommand.cpp
@@ -1312,6 +1312,36 @@ void QSimCommand::setWantYesNo( bool value )
/*!
+ Returns true if \c GetInkey wants that the response is immediately sent
+ after key press. The default value is false.
+
+ Applies to: \c GetInkey
+
+ \sa setWantImmediateResponse()
+*/
+bool QSimCommand::wantImmediateResponse() const
+{
+ if ( d->type == QSimCommand::GetInkey )
+ return d->qualifierBit( 0x08 );
+ else
+ return false;
+}
+
+/*!
+ Sets the flag that determines if \c GetInkey wants that
+ the response is immediately sent after key press.
+
+ Applies to: \c GetInkey
+
+ \sa wantImmediateResponse()
+*/
+void QSimCommand::setWantImmediateResponse( bool value )
+{
+ if ( d->type == QSimCommand::GetInkey )
+ dwrite()->setQualifierBit( 0x08, value );
+}
+
+/*!
Returns the minimum text length for input. The default value is 0.
Applies to: \c GetInput.
diff --git a/src/qsimcommand.h b/src/qsimcommand.h
index 3b34be9..2c1b423 100644
--- a/src/qsimcommand.h
+++ b/src/qsimcommand.h
@@ -292,6 +292,9 @@ public:
bool echo() const;
void setEcho( bool value );
+ bool wantImmediateResponse() const;
+ void setWantImmediateResponse( bool value );
+
QSimCommand::Disposition disposition() const;
void setDisposition( QSimCommand::Disposition value );