cmd_playtree.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * cmd_playtree.hpp
00003  *****************************************************************************
00004  * Copyright (C) 2005 the VideoLAN team
00005  * $Id: 97d6fa1e329f6a25426fe174ca8096823ff4ad25 $
00006  *
00007  * Authors: Antoine Cellerier <dionoea@videolan.org>
00008  *          Clément Stenac <zorglub@videolan.org>
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 along
00021  * with this program; if not, write to the Free Software Foundation, Inc.,
00022  * 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00023  *****************************************************************************/
00024 
00025 #ifndef CMD_PLAYTREE_HPP
00026 #define CMD_PLAYTREE_HPP
00027 
00028 #include "cmd_generic.hpp"
00029 #include "../utils/var_tree.hpp"
00030 
00031 // TODO : implement branch specific stuff
00032 
00033 /// Command to delete the selected items from a tree
00034 class CmdPlaytreeDel: public CmdGeneric
00035 {
00036 public:
00037     CmdPlaytreeDel( intf_thread_t *pIntf, VarTree &rTree )
00038                   : CmdGeneric( pIntf ), m_rTree( rTree ) { }
00039     virtual ~CmdPlaytreeDel() { }
00040     virtual void execute();
00041     virtual string getType() const { return "playtree del"; }
00042 
00043 private:
00044     /// Tree
00045     VarTree &m_rTree;
00046 };
00047 
00048 /// Command to sort the playtree
00049 DEFINE_COMMAND( PlaytreeSort, "playtree sort" )
00050 
00051 #endif

Generated on Tue May 25 08:04:58 2010 for VLC by  doxygen 1.5.6