| 426 | } |
| 427 | |
| 428 | bool LightpackPluginInterface::DeleteProfile(QString sessionKey, QString profile) |
| 429 | { |
| 430 | if (lockSessionKeys.isEmpty()) return false; |
| 431 | if (lockSessionKeys[0]!=sessionKey) return false; |
| 432 | QStringList profiles = Settings::findAllProfiles(); |
| 433 | if (profiles.contains(profile)) |
| 434 | { |
| 435 | Settings::loadOrCreateProfile(profile); |
| 436 | Settings::removeCurrentProfile(); |
| 437 | QString profileLast = Settings::getLastProfileName(); |
| 438 | emit updateProfile(profileLast); |
| 439 | return true; |
| 440 | } |
| 441 | else |
| 442 | return false; |
| 443 | } |
| 444 | |
| 445 | bool LightpackPluginInterface::SetBacklight(QString sessionKey, int backlight) |
| 446 | { |
no outgoing calls
no test coverage detected