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

Method DeleteProfile

Software/src/LightpackPluginInterface.cpp:428–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428bool 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
445bool LightpackPluginInterface::SetBacklight(QString sessionKey, int backlight)
446{

Callers 1

clientProcessCommandsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected