| 315 | } |
| 316 | |
| 317 | bool LightpackPluginInterface::SetGamma(QString sessionKey, double gamma) |
| 318 | { |
| 319 | if (lockSessionKeys.isEmpty()) return false; |
| 320 | if (lockSessionKeys[0]!=sessionKey) return false; |
| 321 | if (gamma >= Profile::Device::GammaMin && gamma <= Profile::Device::GammaMax) |
| 322 | { |
| 323 | emit updateGamma(gamma); |
| 324 | return true; |
| 325 | } else |
| 326 | return false; |
| 327 | } |
| 328 | |
| 329 | bool LightpackPluginInterface::SetBrightness(QString sessionKey, int brightness) |
| 330 | { |
no outgoing calls
no test coverage detected