| 298 | } |
| 299 | |
| 300 | void LedDevice::disableDevice(bool toEmit) |
| 301 | { |
| 302 | if (_isEnabled) |
| 303 | { |
| 304 | _isEnabled = false; |
| 305 | |
| 306 | if (_isRefreshEnabled) |
| 307 | this->stopRefreshTimer(); |
| 308 | |
| 309 | switchOff(); |
| 310 | close(); |
| 311 | |
| 312 | if (toEmit) |
| 313 | emit SignalEnableStateChanged(_isEnabled); |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | void LedDevice::setInError(const QString& errorMsg) |
| 318 | { |
nothing calls this directly
no test coverage detected