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

Method SetLeds

Software/src/LightpackPluginInterface.cpp:400–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400bool LightpackPluginInterface::SetLeds(QString sessionKey, QList<QRect> leds)
401{
402 if (lockSessionKeys.isEmpty()) return false;
403 if (lockSessionKeys[0]!=sessionKey) return false;
404 int num =0;
405 foreach(QRect rectLed, leds){
406 Settings::setLedPosition(num, QPoint(rectLed.x(),rectLed.y()));
407 Settings::setLedSize(num,QSize(rectLed.width(),rectLed.height()));
408 ++ num;
409 }
410 emit updateCountLeds(leds.count());
411 QString profile = Settings::getCurrentProfileName();
412 emit updateProfile(profile);
413 return true;
414}
415
416bool LightpackPluginInterface::NewProfile(QString sessionKey, QString profile)
417{

Callers 1

clientProcessCommandsMethod · 0.80

Calls 1

countMethod · 0.80

Tested by

no test coverage detected