00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef CMD_PLAYTREE_HPP
00025 #define CMD_PLAYTREE_HPP
00026
00027 #include "cmd_generic.hpp"
00028 #include "../utils/var_tree.hpp"
00029
00030
00031
00033 class CmdPlaytreeDel: public CmdGeneric
00034 {
00035 public:
00036 CmdPlaytreeDel( intf_thread_t *pIntf, VarTree &rTree ):
00037 CmdGeneric( pIntf ), m_rTree( rTree ) {}
00038 virtual ~CmdPlaytreeDel() {}
00039
00041 virtual void execute();
00042
00044 virtual string getType() const { return "playtree del"; }
00045
00046 private:
00048 VarTree &m_rTree;
00049 };
00050
00052 DEFINE_COMMAND( PlaytreeSort, "playtree sort" )
00053
00054
00055 DEFINE_COMMAND( PlaytreeNext, "playtree next" )
00056
00058 DEFINE_COMMAND( PlaytreePrevious, "playtree previous" )
00059
00061 class CmdPlaytreeRandom: public CmdGeneric
00062 {
00063 public:
00064 CmdPlaytreeRandom( intf_thread_t *pIntf, bool value ):
00065 CmdGeneric( pIntf ), m_value( value ) {}
00066 virtual ~CmdPlaytreeRandom() {}
00067
00069 virtual void execute();
00070
00072 virtual string getType() const { return "playtree random"; }
00073
00074 private:
00076 bool m_value;
00077 };
00078
00080 class CmdPlaytreeLoop: public CmdGeneric
00081 {
00082 public:
00083 CmdPlaytreeLoop( intf_thread_t *pIntf, bool value ):
00084 CmdGeneric( pIntf ), m_value( value ) {}
00085 virtual ~CmdPlaytreeLoop() {}
00086
00088 virtual void execute();
00089
00091 virtual string getType() const { return "playtree loop"; }
00092
00093 private:
00095 bool m_value;
00096 };
00097
00099 class CmdPlaytreeRepeat: public CmdGeneric
00100 {
00101 public:
00102 CmdPlaytreeRepeat( intf_thread_t *pIntf, bool value ):
00103 CmdGeneric( pIntf ), m_value( value ) {}
00104 virtual ~CmdPlaytreeRepeat() {}
00105
00107 virtual void execute();
00108
00110 virtual string getType() const { return "playtree repeat"; }
00111
00112 private:
00114 bool m_value;
00115 };
00116
00118 class CmdPlaytreeLoad: public CmdGeneric
00119 {
00120 public:
00121 CmdPlaytreeLoad( intf_thread_t *pIntf, bool value ):
00122 CmdGeneric( pIntf ), m_value( value ) {}
00123 virtual ~CmdPlaytreeLoad() {}
00124
00126 virtual void execute();
00127
00129 virtual string getType() const { return "playtree load"; }
00130
00131 private:
00133 bool m_value;
00134 };
00135
00137 class CmdPlaytreeSave: public CmdGeneric
00138 {
00139 public:
00140 CmdPlaytreeSave( intf_thread_t *pIntf, bool value ):
00141 CmdGeneric( pIntf ), m_value( value ) {}
00142 virtual ~CmdPlaytreeSave() {}
00143
00145 virtual void execute();
00146
00148 virtual string getType() const { return "playtree save"; }
00149
00150 private:
00152 bool m_value;
00153 };
00154
00155 #endif