From 8caf69e5414430f657eb0fd17c264bf18260bf61 Mon Sep 17 00:00:00 2001 From: AEtHeLsYn Date: Fri, 11 Mar 2016 12:21:04 +0100 Subject: [PATCH] Update JsonConnection.h Former-commit-id: fa07c01ab5bb34029d8b13ea93187a54686d784c --- src/hyperion-remote/JsonConnection.h | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/hyperion-remote/JsonConnection.h b/src/hyperion-remote/JsonConnection.h index 472c5565..2f170fef 100644 --- a/src/hyperion-remote/JsonConnection.h +++ b/src/hyperion-remote/JsonConnection.h @@ -89,6 +89,8 @@ public: /// @param transformId The identifier of the transform to set /// @param saturation The HSV saturation gain /// @param value The HSV value gain + /// @param saturationL The HSL saturation gain + /// @param luminance The HSL luminance gain /// @param threshold The threshold /// @param gamma The gamma value /// @param blacklevel The blacklevel @@ -98,10 +100,42 @@ public: std::string * transformId, double * saturation, double * value, + double * saturationL, + double * luminance, ColorTransformValues * threshold, ColorTransformValues * gamma, ColorTransformValues * blacklevel, ColorTransformValues * whitelevel); + + /// + /// Set the color correction of the leds + /// + /// @note Note that providing a NULL will leave the settings on the server unchanged + /// + /// @param correctionId The identifier of the correction to set + /// @param red The red correction value + /// @param green The green correction value + /// @param blue The blue correction value + void setCorrection( + std::string * correctionId, + int * red, + int * green, + int * blue); + + /// + /// Set the color temperature of the leds + /// + /// @note Note that providing a NULL will leave the settings on the server unchanged + /// + /// @param temperatureId The identifier of the correction to set + /// @param red The red temperature value + /// @param green The green temperature value + /// @param blue The blue temperature value + void setCorrection( + std::string * temperaturenId, + int * red, + int * green, + int * blue); private: ///