| 398 | } |
| 399 | |
| 400 | bool 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 | |
| 416 | bool LightpackPluginInterface::NewProfile(QString sessionKey, QString profile) |
| 417 | { |
no test coverage detected