]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/commands/cmd_playlist.hpp
* skins2: support playlist.setRandom(true) and playlist.setRandom(false)
[vlc] / modules / gui / skins2 / commands / cmd_playlist.hpp
index 8c663e3dc1da748da4859a7b757dfd109ca362f0..2f567217140ab6178571960e5d065b2e43c42bc2 100755 (executable)
@@ -78,6 +78,7 @@ class CmdPlaylistRandom: public CmdGeneric
         bool m_value;
 };
 
+
 /// Command to set the loop state
 class CmdPlaylistLoop: public CmdGeneric
 {
@@ -98,5 +99,24 @@ class CmdPlaylistLoop: public CmdGeneric
 };
 
 
+/// Command to set the repeat state
+class CmdPlaylistRepeat: public CmdGeneric
+{
+    public:
+        CmdPlaylistRepeat( intf_thread_t *pIntf, bool value ):
+            CmdGeneric( pIntf ), m_value( value ) {}
+        virtual ~CmdPlaylistRepeat() {}
+
+        /// This method does the real job of the command
+        virtual void execute();
+
+        /// Return the type of the command
+        virtual string getType() const { return "playlist repeat"; }
+
+    private:
+        /// Repeat state
+        bool m_value;
+};
+
 
 #endif