MCPcopy Create free account
hub / github.com/Atarity/Lightpack / SetDevice

Method SetDevice

Software/src/LightpackPluginInterface.cpp:366–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366bool 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
380bool LightpackPluginInterface::SetStatus(QString sessionKey, int status)
381{

Callers 1

clientProcessCommandsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected