File indexing completed on 2024-05-05 04:48:44

0001 /****************************************************************************************
0002  * Copyright (c) 2010 Andreas Hartmetz <ahartmetz@gmail.com>                            *
0003  *                                                                                      *
0004  * This program is free software; you can redistribute it and/or modify it under        *
0005  * the terms of the GNU General Public License as published by the Free Software        *
0006  * Foundation; either version 2 of the License, or (at your option) version 3 or        *
0007  * any later version accepted by the membership of KDE e.V. (or its successor approved  *
0008  * by the membership of KDE e.V.), which shall act as a proxy defined in Section 14 of  *
0009  * version 3 of the license.                                                            *
0010  *                                                                                      *
0011  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0012  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0013  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0014  *                                                                                      *
0015  * You should have received a copy of the GNU General Public License along with         *
0016  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0017  ****************************************************************************************/
0018 
0019 #ifndef AMAROK_PLAYLISTQUEUEEDITOR_H
0020 #define AMAROK_PLAYLISTQUEUEEDITOR_H
0021 
0022 #include <QDialog>
0023 
0024 #include "ui_PlaylistQueueEditor.h"
0025 
0026 class PlaylistQueueEditor : public QDialog
0027 {
0028     Q_OBJECT
0029 public:
0030     PlaylistQueueEditor();
0031 
0032 private Q_SLOTS:
0033     void queueChanged();
0034     void moveUp();
0035     void moveDown();
0036     void dequeueTrack();
0037     void clear();
0038 
0039 private:
0040     void updateView();
0041     quint64 currentId();
0042     void setCurrentId( quint64 id );
0043     bool m_blockViewUpdates;
0044     Ui::PlaylistQueueEditor m_ui;
0045 };
0046 #endif