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

Method SetProfile

Software/src/LightpackPluginInterface.cpp:353–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353bool LightpackPluginInterface::SetProfile(QString sessionKey,QString profile)
354{
355 if (lockSessionKeys.isEmpty()) return false;
356 if (lockSessionKeys[0]!=sessionKey) return false;
357 QStringList profiles = Settings::findAllProfiles();
358 if (profiles.contains(profile))
359 {
360 emit updateProfile(profile);
361 return true;
362 } else
363 return false;
364}
365
366bool LightpackPluginInterface::SetDevice(QString sessionKey,QString device)
367{

Callers 1

clientProcessCommandsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected