File indexing completed on 2024-07-07 03:57:01

0001 //
0002 // C++ Interface: converterdialog
0003 //
0004 // Description: Converter Dialog.
0005 //
0006 /*
0007 Copyright 2008-2011 Tomas Mecir <kmuddy@kmuddy.com>
0008 
0009 This program is free software; you can redistribute it and/or
0010 modify it under the terms of the GNU General Public License as
0011 published by the Free Software Foundation; either version 2 of 
0012 the License, or (at your option) any later version.
0013 
0014 This program is distributed in the hope that it will be useful,
0015 but WITHOUT ANY WARRANTY; without even the implied warranty of
0016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017 GNU General Public License for more details.
0018 
0019 You should have received a copy of the GNU General Public License
0020 along with this program.  If not, see <http://www.gnu.org/licenses/>.
0021 */
0022 
0023 #ifndef CONVERTERDIALOG_H
0024 #define CONVERTERDIALOG_H
0025 
0026 #include <QDialog>
0027 #include <list>
0028 
0029 /** Defined one item of the conversion dialog. */
0030 struct ConversionDialogItem {
0031   QString name, path;
0032   bool convert;
0033 };
0034 
0035 /** Converter dialog - displays the dialog and lets the user pick profiles to convert */
0036 
0037 class cConverterDialog: public QDialog {
0038 Q_OBJECT
0039 public:
0040   cConverterDialog (QWidget *parent);
0041   ~cConverterDialog () override;
0042   bool display (std::list<ConversionDialogItem *> items);
0043 private:
0044   struct Private;
0045   Private *d;
0046 };
0047 
0048 #endif  // CONVERTERDIALOG_H