00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
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