summaryrefslogtreecommitdiff
path: root/src/serialport/qserialport_p.h
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2014-12-30 13:38:05 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2015-01-15 20:57:33 +0100
commitb1005907d26a3e2f5dffaec93d656a0c1210961f (patch)
treeb5db77484d92536a995a8d822166bb0906eac8ef /src/serialport/qserialport_p.h
parent38f43b390e5b27f6243ba781394ad2418ead6b74 (diff)
downloadqtserialport-b1005907d26a3e2f5dffaec93d656a0c1210961f.tar.gz
Improve usage of the break state for the Tx line
1. Now the sendBreak() method is deprecated since it is blocking and impossible to implement same behavior on different platforms using their API's. Besides, this method can be implemented via setBreakEnabled() and QTimer. 2. Introduced the new property named as "breakEnabled" which consist of setBreakEnabled() and isBreakEnabled() methods and the signal breakEnabledChanged(). Note: After opening, the port always is in non-break state. Task-number: QTBUG-36571 Change-Id: Ib808dab7eaed8cc5449c66d8186a29a7b7e45afc Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'src/serialport/qserialport_p.h')
-rw-r--r--src/serialport/qserialport_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/serialport/qserialport_p.h b/src/serialport/qserialport_p.h
index a62c3c5..72c37b8 100644
--- a/src/serialport/qserialport_p.h
+++ b/src/serialport/qserialport_p.h
@@ -175,6 +175,7 @@ public:
bool dataTerminalReady;
bool requestToSend;
bool settingsRestoredOnClose;
+ bool isBreakEnabled;
#if defined (Q_OS_WINCE)