3
* Configuration for filter dialog.
9
* Copyright (C) 2008 Urs Fleisch
11
* This file is part of Kid3.
13
* Kid3 is free software; you can redistribute it and/or modify
14
* it under the terms of the GNU General Public License as published by
15
* the Free Software Foundation; either version 2 of the License, or
16
* (at your option) any later version.
18
* Kid3 is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
23
* You should have received a copy of the GNU General Public License
24
* along with this program. If not, see <http://www.gnu.org/licenses/>.
27
#ifndef FILTERCONFIG_H
28
#define FILTERCONFIG_H
30
#include <QStringList>
32
#include "generalconfig.h"
35
* Filter configuration.
37
class FilterConfig : public GeneralConfig {
41
* Set default configuration.
43
* @param grp configuration group
45
FilterConfig(const QString& grp);
50
virtual ~FilterConfig();
53
* Persist configuration.
55
* @param config KDE configuration
57
virtual void writeToConfig(Kid3Settings* config) const;
60
* Read persisted configuration.
62
* @param config KDE configuration
64
virtual void readFromConfig(Kid3Settings* config);
67
* Set the filename format in the "Filename Tag Mismatch" filter.
69
* @param format filename format
71
void setFilenameFormat(const QString& format);
73
/** Names of filter expressions */
74
QStringList m_filterNames;
75
/** Filter expressions */
76
QStringList m_filterExpressions;
77
/** Selected filter */