| 351 | } |
| 352 | |
| 353 | bool 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 | |
| 366 | bool LightpackPluginInterface::SetDevice(QString sessionKey,QString device) |
| 367 | { |
no outgoing calls
no test coverage detected