summaryrefslogtreecommitdiffstats
path: root/src/plugins/canbus/peakcan/peakcanbackend.cpp
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2015-09-11 12:56:27 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2015-09-16 07:38:09 +0000
commit2089fb8a21989eee87f8276e522a701c438d2a8c (patch)
tree50c10a489b900325293bef46a1d5cf74be1daded /src/plugins/canbus/peakcan/peakcanbackend.cpp
parent721351b2c1e0cfae915c456fc1c6156fac9cc32c (diff)
PeakCan: Rename the enable/disable to the acquire/release
... for the read notification, because this names reflects a functionality of methods. Change-Id: I4c655eb73fea13d9fd00fed92165a7d1af0fd97a Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/plugins/canbus/peakcan/peakcanbackend.cpp')
-rw-r--r--src/plugins/canbus/peakcan/peakcanbackend.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/canbus/peakcan/peakcanbackend.cpp b/src/plugins/canbus/peakcan/peakcanbackend.cpp
index f3d6fda..1d3f2ed 100644
--- a/src/plugins/canbus/peakcan/peakcanbackend.cpp
+++ b/src/plugins/canbus/peakcan/peakcanbackend.cpp
@@ -210,7 +210,7 @@ bool PeakCanBackendPrivate::open()
return false;
}
- if (!enableReadNotification()) {
+ if (!acquireReadNotification()) {
if (TPCANStatus st = ::CAN_Uninitialize(channelIndex) != PCAN_ERROR_OK)
q->setError(systemErrorString(st), QCanBusDevice::ConnectionError);
return false;
@@ -225,7 +225,7 @@ void PeakCanBackendPrivate::close()
Q_Q(PeakCanBackend);
enableWriteNotification(false);
- disableReadNotification();
+ releaseReadNotification();
if (outgoingEventNotifier) {
delete outgoingEventNotifier;
@@ -345,7 +345,7 @@ void PeakCanBackendPrivate::canWriteNotification()
enableWriteNotification(true);
}
-bool PeakCanBackendPrivate::enableReadNotification()
+bool PeakCanBackendPrivate::acquireReadNotification()
{
Q_Q(PeakCanBackend);
@@ -373,7 +373,7 @@ bool PeakCanBackendPrivate::enableReadNotification()
return true;
}
-void PeakCanBackendPrivate::disableReadNotification()
+void PeakCanBackendPrivate::releaseReadNotification()
{
Q_Q(PeakCanBackend);