File indexing completed on 2024-05-19 04:48:45

0001 /****************************************************************************************
0002  * Copyright (c) 2012 Matěj Laitl <matej@laitl.cz>                                      *
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 METADATACONFIG_H
0018 #define METADATACONFIG_H
0019 
0020 #include "ui_MetadataConfig.h"
0021 #include "configdialog/ConfigDialogBase.h"
0022 
0023 namespace StatSyncing {
0024     class Config;
0025 }
0026 
0027 class MetadataConfig : public ConfigDialogBase, private Ui_MetadataConfig
0028 {
0029     Q_OBJECT
0030 
0031     public:
0032         explicit MetadataConfig( Amarok2ConfigDialog *parent );
0033         ~MetadataConfig() override;
0034 
0035         bool isDefault() override;
0036         bool hasChanged() override;
0037         void updateSettings() override;
0038 
0039     Q_SIGNALS:
0040         void changed();
0041 
0042     private Q_SLOTS:
0043         void slotForgetCollections();
0044         void slotUpdateForgetButton();
0045         void slotUpdateConfigureExcludedLabelsLabel();
0046         void slotConfigureExcludedLabels();
0047         void slotConfigureProvider();
0048         void slotUpdateProviderConfigureButton();
0049         void slotCreateProviderDialog();
0050 
0051     private:
0052         int writeBackCoverDimensions() const;
0053         qint64 checkedFields() const;
0054 
0055         QPointer<StatSyncing::Config> m_statSyncingConfig;
0056 
0057 };
0058 
0059 #endif // METADATACONFIG_H