summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2015-04-21 14:14:17 +0200
committerAndrew Branson <andrew.branson@cern.ch>2015-04-21 14:14:17 +0200
commit4a451484eae4f6dd496570247c81a8bd93610859 (patch)
tree15cb8343d1194cebea13cc7b75223d5960860203
parentbcbc550fa4603a2d394b267cab0a5ccf035ba633 (diff)
Rename setIncreasedReconnectTimer
to scheduleReconnect
-rw-r--r--daemon/watchconnector.cpp6
-rw-r--r--daemon/watchconnector.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/daemon/watchconnector.cpp b/daemon/watchconnector.cpp
index 9b5a41d..d07118c 100644
--- a/daemon/watchconnector.cpp
+++ b/daemon/watchconnector.cpp
@@ -164,7 +164,7 @@ void WatchConnector::handleWatch(const QString &name, const QString &address)
bool btOff = host.hostMode() == QBluetoothLocalDevice::HostPoweredOff;
if (btOff) {
qCDebug(l) << "Bluetooth switched off.";
- setIncreasedReconnectTimer();
+ scheduleReconnect();
return;
}
@@ -333,11 +333,11 @@ void WatchConnector::onDisconnected()
writeData.clear(); // 3rd time around - user is not here, do not bother with resending last message
}
- setIncreasedReconnectTimer();
+ scheduleReconnect();
}
-void WatchConnector::setIncreasedReconnectTimer()
+void WatchConnector::scheduleReconnect()
{
if (reconnectTimer.interval() < 10 * RECONNECT_TIMEOUT) {
reconnectTimer.setInterval(reconnectTimer.interval() + RECONNECT_TIMEOUT);
diff --git a/daemon/watchconnector.h b/daemon/watchconnector.h
index c56d861..2099ec6 100644
--- a/daemon/watchconnector.h
+++ b/daemon/watchconnector.h
@@ -216,7 +216,7 @@ signals:
public slots:
void deviceConnect(const QString &name, const QString &address);
- void setIncreasedReconnectTimer();
+ void scheduleReconnect();
void disconnect();
void reconnect();