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

cmd_playlist.hpp

00001 /*****************************************************************************
00002  * cmd_playlist.hpp
00003  *****************************************************************************
00004  * Copyright (C) 2003 the VideoLAN team
00005  * $Id: cmd_playlist.hpp 11664 2005-07-09 06:17:09Z courmisch $
00006  *
00007  * Authors: Cyril Deguet     <[email protected]>
00008  *          Olivier Teulière <[email protected]>
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00023  *****************************************************************************/
00024 
00025 #ifndef CMD_PLAYLIST_HPP
00026 #define CMD_PLAYLIST_HPP
00027 
00028 #include "cmd_generic.hpp"
00029 #include "../utils/var_list.hpp"
00030 
00031 
00033 class CmdPlaylistDel: public CmdGeneric
00034 {
00035     public:
00036         CmdPlaylistDel( intf_thread_t *pIntf, VarList &rList ):
00037             CmdGeneric( pIntf ), m_rList( rList ) {}
00038         virtual ~CmdPlaylistDel() {}
00039 
00041         virtual void execute();
00042 
00044         virtual string getType() const { return "playlist del"; }
00045 
00046     private:
00048         VarList &m_rList;
00049 };
00050 
00051 
00053 DEFINE_COMMAND( PlaylistSort, "playlist sort" )
00054 
00055 
00056 DEFINE_COMMAND( PlaylistNext, "playlist next" )
00057 
00059 DEFINE_COMMAND( PlaylistPrevious, "playlist previous" )
00060 
00061 
00063 class CmdPlaylistRandom: public CmdGeneric
00064 {
00065     public:
00066         CmdPlaylistRandom( intf_thread_t *pIntf, bool value ):
00067             CmdGeneric( pIntf ), m_value( value ) {}
00068         virtual ~CmdPlaylistRandom() {}
00069 
00071         virtual void execute();
00072 
00074         virtual string getType() const { return "playlist random"; }
00075 
00076     private:
00078         bool m_value;
00079 };
00080 
00081 
00083 class CmdPlaylistLoop: public CmdGeneric
00084 {
00085     public:
00086         CmdPlaylistLoop( intf_thread_t *pIntf, bool value ):
00087             CmdGeneric( pIntf ), m_value( value ) {}
00088         virtual ~CmdPlaylistLoop() {}
00089 
00091         virtual void execute();
00092 
00094         virtual string getType() const { return "playlist loop"; }
00095 
00096     private:
00098         bool m_value;
00099 };
00100 
00101 
00103 class CmdPlaylistRepeat: public CmdGeneric
00104 {
00105     public:
00106         CmdPlaylistRepeat( intf_thread_t *pIntf, bool value ):
00107             CmdGeneric( pIntf ), m_value( value ) {}
00108         virtual ~CmdPlaylistRepeat() {}
00109 
00111         virtual void execute();
00112 
00114         virtual string getType() const { return "playlist repeat"; }
00115 
00116     private:
00118         bool m_value;
00119 };
00120 
00121 
00123 class CmdPlaylistLoad: public CmdGeneric
00124 {
00125     public:
00126         CmdPlaylistLoad( intf_thread_t *pIntf, const string& rFile ):
00127             CmdGeneric( pIntf ), m_file( rFile ) {}
00128         virtual ~CmdPlaylistLoad() {}
00129 
00131         virtual void execute();
00132 
00134         virtual string getType() const { return "playlist load"; }
00135 
00136     private:
00138         string m_file;
00139 };
00140 
00141 
00143 class CmdPlaylistSave: public CmdGeneric
00144 {
00145     public:
00146         CmdPlaylistSave( intf_thread_t *pIntf, const string& rFile ):
00147             CmdGeneric( pIntf ), m_file( rFile ) {}
00148         virtual ~CmdPlaylistSave() {}
00149 
00151         virtual void execute();
00152 
00154         virtual string getType() const { return "playlist save"; }
00155 
00156     private:
00158         string m_file;
00159 };
00160 
00161 
00162 #endif

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