File indexing completed on 2024-05-12 04:55:39
0001 /** 0002 * \file configobjects.cpp 0003 * Access to configurations as QObjects. 0004 * 0005 * \b Project: Kid3 0006 * \author Urs Fleisch 0007 * \date 21 Sep 2014 0008 * 0009 * Copyright (C) 2014-2018 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 #include "configobjects.h" 0028 #include "batchimportconfig.h" 0029 #include "filterconfig.h" 0030 #include "formatconfig.h" 0031 #include "importconfig.h" 0032 #include "exportconfig.h" 0033 #include "tagconfig.h" 0034 #include "fileconfig.h" 0035 #include "rendirconfig.h" 0036 #include "numbertracksconfig.h" 0037 #include "useractionsconfig.h" 0038 #include "guiconfig.h" 0039 #include "networkconfig.h" 0040 #include "playlistconfig.h" 0041 #include "serverimporterconfig.h" 0042 #include "findreplaceconfig.h" 0043 #include "mainwindowconfig.h" 0044 0045 ConfigObjects::ConfigObjects(QObject* parent) : QObject(parent) 0046 { 0047 } 0048 0049 QObject* ConfigObjects::batchImportConfig() 0050 { 0051 return &BatchImportConfig::instance(); 0052 } 0053 0054 QObject* ConfigObjects::filterConfig() 0055 { 0056 return &FilterConfig::instance(); 0057 } 0058 0059 QObject* ConfigObjects::filenameFormatConfig() 0060 { 0061 return &FilenameFormatConfig::instance(); 0062 } 0063 0064 QObject* ConfigObjects::tagFormatConfig() 0065 { 0066 return &TagFormatConfig::instance(); 0067 } 0068 0069 QObject* ConfigObjects::importConfig() 0070 { 0071 return &ImportConfig::instance(); 0072 } 0073 0074 QObject* ConfigObjects::exportConfig() 0075 { 0076 return &ExportConfig::instance(); 0077 } 0078 0079 QObject* ConfigObjects::tagConfig() 0080 { 0081 return &TagConfig::instance(); 0082 } 0083 0084 QObject* ConfigObjects::fileConfig() 0085 { 0086 return &FileConfig::instance(); 0087 } 0088 0089 QObject* ConfigObjects::renDirConfig() 0090 { 0091 return &RenDirConfig::instance(); 0092 } 0093 0094 QObject* ConfigObjects::numberTracksConfig() 0095 { 0096 return &NumberTracksConfig::instance(); 0097 } 0098 0099 QObject* ConfigObjects::userActionsConfig() 0100 { 0101 return &UserActionsConfig::instance(); 0102 } 0103 0104 QObject* ConfigObjects::guiConfig() 0105 { 0106 return &GuiConfig::instance(); 0107 } 0108 0109 QObject* ConfigObjects::networkConfig() 0110 { 0111 return &NetworkConfig::instance(); 0112 } 0113 0114 QObject* ConfigObjects::playlistConfig() 0115 { 0116 return &PlaylistConfig::instance(); 0117 } 0118 0119 QObject* ConfigObjects::findReplaceConfig() 0120 { 0121 return &FindReplaceConfig::instance(); 0122 } 0123 0124 QObject* ConfigObjects::mainWindowConfig() 0125 { 0126 return &MainWindowConfig::instance(); 0127 }