Qmmp
|
00001 /*************************************************************************** 00002 * Copyright (C) 2009-2012 by Ilya Kotov * 00003 * forkotov02@hotmail.ru * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 00019 ***************************************************************************/ 00020 #ifndef DETAILSDIALOG_H 00021 #define DETAILSDIALOG_H 00022 00023 #include <QDialog> 00024 #include <QList> 00025 #include <QMap> 00026 #include <qmmp/qmmp.h> 00027 00028 class QTextCodec; 00029 class QAbstractButton; 00030 class PlayListItem; 00031 class MetaDataModel; 00032 00033 namespace Ui { 00034 class DetailsDialog; 00035 } 00036 00040 class DetailsDialog : public QDialog 00041 { 00042 Q_OBJECT 00043 public: 00049 DetailsDialog(PlayListItem *item, QWidget *parent = 0); 00053 ~DetailsDialog(); 00054 00055 private slots: 00056 void on_buttonBox_clicked(QAbstractButton *button); 00057 void on_directoryButton_clicked(); 00058 00059 private: 00060 Ui::DetailsDialog *m_ui; 00061 void printInfo(); 00062 QString m_path; 00063 QString formatRow(const QString key, const QString value); 00064 MetaDataModel *m_metaDataModel; 00065 PlayListItem *m_item; 00066 }; 00067 00068 #endif