]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/commands/cmd_vars.hpp
Missing translations.
[vlc] / modules / gui / skins2 / commands / cmd_vars.hpp
index 9a30fe11b04d06667b9373327e0d1ad7cc53ff81..608ee4e659a657e077fcc7b906e07d2269505f99 100644 (file)
@@ -18,7 +18,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
 #ifndef CMD_VARS_HPP
@@ -59,6 +59,44 @@ class CmdPlaytreeUpdate: public CmdGeneric
         int m_id;
 };
 
+/// Command to notify the playtree of an item append
+class CmdPlaytreeAppend: public CmdGeneric
+{
+    public:
+        CmdPlaytreeAppend( intf_thread_t *pIntf, playlist_add_t *p_add ) :
+            CmdGeneric( pIntf ), m_pAdd( p_add ) {}
+        virtual ~CmdPlaytreeAppend() {}
+
+        /// This method does the real job of the command
+        virtual void execute();
+
+        /// Return the type of the command
+        virtual string getType() const { return "playtree append"; }
+
+    private:
+        playlist_add_t * m_pAdd;
+};
+
+/// Command to notify the playtree of an item deletion
+class CmdPlaytreeDelete: public CmdGeneric
+{
+    public:
+        CmdPlaytreeDelete( intf_thread_t *pIntf, int i_id ) :
+            CmdGeneric( pIntf ), m_id( i_id ) {}
+        virtual ~CmdPlaytreeDelete() {}
+
+        /// This method does the real job of the command
+        virtual void execute();
+
+        /// Return the type of the command
+        virtual string getType() const { return "playtree append"; }
+
+    private:
+        int m_id;
+};
+
+
+
 
 /// Command to set a text variable
 class CmdSetText: public CmdGeneric