]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/commands/cmd_vars.hpp
* all: added a new variable "equalizer.preamp" (self-explanatory ;) in skins
[vlc] / modules / gui / skins2 / commands / cmd_vars.hpp
index de31378a4cfc53b9aa8ca45944b8e9b4faed2928..a2445ed0deaa969128a34f7ffef0b90ebe7c67d0 100644 (file)
@@ -28,6 +28,7 @@
 #include "../utils/ustring.hpp"
 
 class EqualizerBands;
+class EqualizerPreamp;
 class VarText;
 
 /// Command to notify the playlist of a change
@@ -79,6 +80,29 @@ class CmdSetText: public CmdGeneric
 };
 
 
+/// Command to set the equalizer preamp
+class CmdSetEqPreamp: public CmdGeneric
+{
+    public:
+        CmdSetEqPreamp( intf_thread_t *pIntf, EqualizerPreamp &rPreamp,
+                       float value ):
+            CmdGeneric( pIntf ), m_rPreamp( rPreamp ), m_value( value ) {}
+        virtual ~CmdSetEqPreamp() {}
+
+        /// This method does the real job of the command
+        virtual void execute();
+
+        /// Return the type of the command
+        virtual string getType() const { return "set equalizer preamp"; }
+
+    private:
+        /// Preamp variable to set
+        EqualizerPreamp &m_rPreamp;
+        /// Value to set
+        float m_value;
+};
+
+
 /// Command to set the equalizerbands
 class CmdSetEqBands: public CmdGeneric
 {