*
* 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
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