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

cmd_vars.hpp

00001 /*****************************************************************************
00002  * cmd_vars.hpp
00003  *****************************************************************************
00004  * Copyright (C) 2004 the VideoLAN team
00005  * $Id: cmd_vars.hpp 12949 2005-10-23 17:42:16Z asmax $
00006  *
00007  * Authors: Cyril Deguet     <[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_VARS_HPP
00025 #define CMD_VARS_HPP
00026 
00027 #include "cmd_generic.hpp"
00028 #include "../utils/ustring.hpp"
00029 
00030 class VarText;
00031 
00033 DEFINE_COMMAND( NotifyPlaylist, "notify playlist" )
00034 
00035 
00036 DEFINE_COMMAND( PlaytreeChanged, "playtree changed" )
00037 
00039 class CmdPlaytreeUpdate: public CmdGeneric
00040 {
00041     public:
00042         CmdPlaytreeUpdate( intf_thread_t *pIntf, int id ):
00043             CmdGeneric( pIntf ), m_id( id ) {}
00044         virtual ~CmdPlaytreeUpdate() {}
00045 
00047         virtual void execute();
00048 
00050         virtual string getType() const { return "playtree update"; }
00051 
00052     private:
00054         int m_id;
00055 };
00056 
00057 
00059 class CmdSetText: public CmdGeneric
00060 {
00061     public:
00062         CmdSetText( intf_thread_t *pIntf, VarText &rText,
00063                     const UString &rValue ):
00064             CmdGeneric( pIntf ), m_rText( rText ), m_value( rValue ) {}
00065         virtual ~CmdSetText() {}
00066 
00068         virtual void execute();
00069 
00071         virtual string getType() const { return "set text"; }
00072 
00073     private:
00075         VarText &m_rText;
00077         const UString m_value;
00078 };
00079 
00080 
00081 #endif

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