File indexing completed on 2025-02-23 04:34:15
0001 /** 0002 * \file batchimportdialog.h 0003 * Dialog to add or edit a batch import source. 0004 * 0005 * \b Project: Kid3 0006 * \author Urs Fleisch 0007 * \date 2 Jan 2013 0008 * 0009 * Copyright (C) 2013-2024 Urs Fleisch 0010 * 0011 * This file is part of Kid3. 0012 * 0013 * Kid3 is free software; you can redistribute it and/or modify 0014 * it under the terms of the GNU General Public License as published by 0015 * the Free Software Foundation; either version 2 of the License, or 0016 * (at your option) any later version. 0017 * 0018 * Kid3 is distributed in the hope that it will be useful, 0019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0021 * GNU General Public License for more details. 0022 * 0023 * You should have received a copy of the GNU General Public License 0024 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0025 */ 0026 0027 #pragma once 0028 0029 #include <QDialog> 0030 #include "batchimportprofile.h" 0031 0032 class QComboBox; 0033 class QSpinBox; 0034 class QCheckBox; 0035 0036 /** 0037 * Dialog to add or edit a batch import source. 0038 */ 0039 class BatchImportSourceDialog : public QDialog { 0040 Q_OBJECT 0041 public: 0042 /** 0043 * Constructor. 0044 * @param parent parent widget 0045 */ 0046 explicit BatchImportSourceDialog(QWidget* parent = nullptr); 0047 0048 /** 0049 * Destructor. 0050 */ 0051 ~BatchImportSourceDialog() override = default; 0052 0053 /** 0054 * Fill batch import source from dialog controls. 0055 * @param source batch import source to be filled 0056 */ 0057 void getSource(BatchImportProfile::Source& source) const; 0058 0059 /** 0060 * Set dialog controls from batch import source. 0061 * @param source batch import source containing properties to be set 0062 */ 0063 void setSource(const BatchImportProfile::Source& source); 0064 0065 /** 0066 * Set names of import servers. 0067 * @param servers server names 0068 */ 0069 void setServerNames(const QStringList& servers); 0070 0071 private: 0072 QComboBox* m_serverComboBox; 0073 QSpinBox* m_accuracySpinBox; 0074 QCheckBox* m_standardTagsCheckBox; 0075 QCheckBox* m_additionalTagsCheckBox; 0076 QCheckBox* m_coverArtCheckBox; 0077 };