Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

cmd_playtree.hpp

00001 /*****************************************************************************
00002  * cmd_playtree.hpp
00003  *****************************************************************************
00004  * Copyright (C) 2005 VideoLAN
00005  * $Id: cmd_playtree.hpp 12302 2005-08-20 13:57:15Z dionoea $
00006  *
00007  * Authors: Antoine Cellerier <[email protected]>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00022  *****************************************************************************/
00023 
00024 #ifndef CMD_PLAYTREE_HPP
00025 #define CMD_PLAYTREE_HPP
00026 
00027 #include "cmd_generic.hpp"
00028 #include "../utils/var_tree.hpp"
00029 
00030 // TODO : implement branch specific stuff
00031 
00033 class CmdPlaytreeDel: public CmdGeneric
00034 {
00035     public:
00036         CmdPlaytreeDel( intf_thread_t *pIntf, VarTree &rTree ):
00037             CmdGeneric( pIntf ), m_rTree( rTree ) {}
00038         virtual ~CmdPlaytreeDel() {}
00039 
00041         virtual void execute();
00042 
00044         virtual string getType() const { return "playtree del"; }
00045 
00046     private:
00048         VarTree &m_rTree;
00049 };
00050 
00052 DEFINE_COMMAND( PlaytreeSort, "playtree sort" )
00053 
00054 
00055 DEFINE_COMMAND( PlaytreeNext, "playtree next" )
00056 
00058 DEFINE_COMMAND( PlaytreePrevious, "playtree previous" )
00059 
00061 class CmdPlaytreeRandom: public CmdGeneric
00062 {
00063     public:
00064         CmdPlaytreeRandom( intf_thread_t *pIntf, bool value ):
00065             CmdGeneric( pIntf ), m_value( value ) {}
00066         virtual ~CmdPlaytreeRandom() {}
00067 
00069         virtual void execute();
00070 
00072         virtual string getType() const { return "playtree random"; }
00073 
00074     private:
00076         bool m_value;
00077 };
00078 
00080 class CmdPlaytreeLoop: public CmdGeneric
00081 {
00082     public:
00083         CmdPlaytreeLoop( intf_thread_t *pIntf, bool value ):
00084             CmdGeneric( pIntf ), m_value( value ) {}
00085         virtual ~CmdPlaytreeLoop() {}
00086 
00088         virtual void execute();
00089 
00091         virtual string getType() const { return "playtree loop"; }
00092 
00093     private:
00095         bool m_value;
00096 };
00097 
00099 class CmdPlaytreeRepeat: public CmdGeneric
00100 {
00101     public:
00102         CmdPlaytreeRepeat( intf_thread_t *pIntf, bool value ):
00103             CmdGeneric( pIntf ), m_value( value ) {}
00104         virtual ~CmdPlaytreeRepeat() {}
00105 
00107         virtual void execute();
00108 
00110         virtual string getType() const { return "playtree repeat"; }
00111 
00112     private:
00114         bool m_value;
00115 };
00116 
00118 class CmdPlaytreeLoad: public CmdGeneric
00119 {
00120     public:
00121         CmdPlaytreeLoad( intf_thread_t *pIntf, bool value ):
00122             CmdGeneric( pIntf ), m_value( value ) {}
00123         virtual ~CmdPlaytreeLoad() {}
00124 
00126         virtual void execute();
00127 
00129         virtual string getType() const { return "playtree load"; }
00130 
00131     private:
00133         bool m_value;
00134 };
00135 
00137 class CmdPlaytreeSave: public CmdGeneric
00138 {
00139     public:
00140         CmdPlaytreeSave( intf_thread_t *pIntf, bool value ):
00141             CmdGeneric( pIntf ), m_value( value ) {}
00142         virtual ~CmdPlaytreeSave() {}
00143 
00145         virtual void execute();
00146 
00148         virtual string getType() const { return "playtree save"; }
00149 
00150     private:
00152         bool m_value;
00153 };
00154 
00155 #endif

Generated on Tue Dec 20 10:14:41 2005 for vlc-0.8.4a by  doxygen 1.4.2