| 364 | } |
| 365 | |
| 366 | bool LightpackPluginInterface::SetDevice(QString sessionKey,QString device) |
| 367 | { |
| 368 | if (lockSessionKeys.isEmpty()) return false; |
| 369 | if (lockSessionKeys[0]!=sessionKey) return false; |
| 370 | QStringList devices = Settings::getSupportedDevices(); |
| 371 | if (devices.contains(device)) |
| 372 | { |
| 373 | //Settings::setConnectedDeviceName(device); |
| 374 | emit changeDevice(device); |
| 375 | return true; |
| 376 | } else |
| 377 | return false; |
| 378 | } |
| 379 | |
| 380 | bool LightpackPluginInterface::SetStatus(QString sessionKey, int status) |
| 381 | { |
no outgoing calls
no test coverage detected