1 /* 2 * qm_commandlist.h 3 * QUIMUP struct to pass commands to MPD 4 * © 2008-2009 Johan Spee 5 * 6 * This file is part of Guimup 7 * 8 * QUIMUP is free software: you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation, either version 3 of the License, or 11 * (at your option) any later version. 12 * 13 * GUIMUP is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program. If not, see http://www.gnu.org/licenses/. 20 */ 21 22 #ifndef QM_COMMAND_H 23 #define QM_COMMAND_H 24 qm_colorpicker(QWidget * parent)25 26 #define CMD_DEF 0 // default (none) 27 #define CMD_DEL 1 // delete 28 #define CMD_ADD 2 // apend 29 #define CMD_INS 3 // insert at moveTo 30 #define CMD_MOV 4 // move ID to moveTo 31 #define CMD_POS 5 // move pos to moveTo 32 #define CMD_DPL 6 // delete playlist 33 #define CMD_SCN 7 // rescan 34 #define CMD_UPD 8 // update 35 36 37 #include <QList> 38 #include <QTreeWidgetItem> 39 #include <QString> 40 41 typedef struct qm_mpd_command 42 { 43 int cmd; 44 int songnr; 45 int songid; 46 int moveTo; 47 QString file; 48 /* below: these are used by the playlist when 49 the library sends a commandlist to add items */ 50 int time; 51 int type; 52 QString artist; 53 QString album; 54 QString title; 55 QString track; 56 } 57 qm_mpd_command; 58 59 60 typedef QList<qm_mpd_command> qm_commandList; 61 62 #endif // QM_COMMAND_H 63