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

0001 /****************************************************************************************
0002  * Copyright (c) 2005 Jeff Mitchell <kde-dev@emailgoeshere.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) any later           *
0007  * version.                                                                             *
0008  *                                                                                      *
0009  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0010  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0011  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0012  *                                                                                      *
0013  * You should have received a copy of the GNU General Public License along with         *
0014  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0015  ****************************************************************************************/
0016 
0017 #ifndef TRANSFERDIALOG_H
0018 #define TRANSFERDIALOG_H
0019 
0020 #include "mediabrowser.h"
0021 #include "amarok_export.h"
0022 
0023 #include <QCheckBox>
0024 #include <qmap.h>
0025 #include <QSignalMapper>
0026 #include <QLabel>
0027 #include <kdialog.h>
0028 
0029 class KComboBox;
0030 class TransferDialog;
0031 
0032 /**
0033     @author Jeff Mitchell <kde-dev@emailgoeshere.com>
0034 */
0035 class AMAROK_EXPORT TransferDialog : public QDialog
0036 {
0037     Q_OBJECT
0038 
0039     public:
0040         explicit TransferDialog( MediaDevice* mdev );
0041         virtual ~TransferDialog() {}
0042 
0043         bool isAccepted() const { return m_accepted; }
0044 
0045     private Q_SLOTS:
0046         void slotOk();
0047         void slotCancel();
0048         void sort1_activated( int index );
0049         void sort2_activated( int index );
0050         void convertSpaces_toggled( bool on );
0051     
0052     private:
0053         MediaDevice                     *m_dev;
0054         bool                             m_accepted;
0055         KComboBox                       *m_sort1;
0056         KComboBox                       *m_sort2;
0057         KComboBox                       *m_sort3;
0058         QLabel                          *m_label1;
0059         QLabel                          *m_label2;
0060         QLabel                          *m_label3;
0061         QList<KComboBox *>             m_combolist;
0062         int                              m_sort1LastIndex;
0063         int                              m_sort2LastIndex;
0064 };
0065 
0066 #endif
0067