| 297 | } |
| 298 | |
| 299 | void DeviceImpl::bindPing() |
| 300 | { |
| 301 | if(!m_pingPlugin) { |
| 302 | return; |
| 303 | } |
| 304 | for(auto &&p : m_connectedPlugins) { |
| 305 | connect(dynamic_cast<QObject *>(p), SIGNAL(pausePingTask(bool)), dynamic_cast<QObject *>(m_pingPlugin), |
| 306 | SLOT(onPausePingTask(bool))); |
| 307 | } |
| 308 | |
| 309 | PingTask *pingTask = m_pingPlugin->pingTask(); |
| 310 | connect(pingTask, &PingTask::forceDisconnect, this, &DeviceImpl::disconnectDev, Qt::QueuedConnection); |
| 311 | connect(pingTask, &PingTask::connectionLost, this, &DeviceImpl::onConnectionLost, Qt::QueuedConnection); |
| 312 | m_pingPlugin->startPingTask(); |
| 313 | } |
| 314 | |
| 315 | void DeviceImpl::unbindPing() |
| 316 | { |
nothing calls this directly
no test coverage detected