summaryrefslogtreecommitdiffstats
path: root/src/plugins/canbus/socketcan/socketcanbackend.h
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-08-28 13:20:11 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-08-31 09:17:26 +0000
commitb47d4384f20dcb5a9331eb823e52986bd5db52d1 (patch)
treec1a17bf4120fc38be2e50cf5bf7d22f94b5cdb10 /src/plugins/canbus/socketcan/socketcanbackend.h
parent0982955739c6b98b9dbe63efb6575cbf01aee1ec (diff)
Adjust config param handling in socketcan
The configuration parameter can be applied before and after a connect. So far the example application always handled the parameters after a connect. The recent can example changes set the params before connect. This lead to the result that the new params were ignored. This change makes it possible to store the params until they are needed. In the case of socketcan the params can only set after the connect when the can bus socket becomes valid. Change-Id: I983fa7d41a63d8f806d0510b4c013d967f039d51 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/plugins/canbus/socketcan/socketcanbackend.h')
-rw-r--r--src/plugins/canbus/socketcan/socketcanbackend.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/canbus/socketcan/socketcanbackend.h b/src/plugins/canbus/socketcan/socketcanbackend.h
index 0c74027..f11c536 100644
--- a/src/plugins/canbus/socketcan/socketcanbackend.h
+++ b/src/plugins/canbus/socketcan/socketcanbackend.h
@@ -73,6 +73,7 @@ private Q_SLOTS:
private:
void resetConfigurations();
bool connectSocket();
+ bool applyConfigurationParameter(int key, const QVariant &value);
qint64 canSocket;
QPointer<QSocketNotifier> notifier;