File indexing completed on 2024-05-12 04:55:39

0001 /**
0002  * \file configobjects.h
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-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 <QObject>
0030 #include "kid3api.h"
0031 
0032 /**
0033  * Access to configurations as QObjects.
0034  */
0035 class KID3_PLUGIN_EXPORT ConfigObjects : public QObject {
0036   Q_OBJECT
0037 public:
0038   /**
0039    * Constructor.
0040    * @param parent parent object
0041    */
0042   explicit ConfigObjects(QObject* parent = nullptr);
0043 
0044   /**
0045    * Destructor.
0046    */
0047   ~ConfigObjects() override = default;
0048 
0049   /** Get batch import configuration. */
0050   Q_INVOKABLE static QObject* batchImportConfig();
0051 
0052   /** Get filter configuration. */
0053   Q_INVOKABLE static QObject* filterConfig();
0054 
0055   /** Get file name formate configuration. */
0056   Q_INVOKABLE static QObject* filenameFormatConfig();
0057 
0058   /** Get tag format configuration. */
0059   Q_INVOKABLE static QObject* tagFormatConfig();
0060 
0061   /** Get import configuration. */
0062   Q_INVOKABLE static QObject* importConfig();
0063 
0064   /** Get export configuration. */
0065   Q_INVOKABLE static QObject* exportConfig();
0066 
0067   /** Get tag configuration. */
0068   Q_INVOKABLE static QObject* tagConfig();
0069 
0070   /** Get file configuration. */
0071   Q_INVOKABLE static QObject* fileConfig();
0072 
0073   /** Get rename directory configuration. */
0074   Q_INVOKABLE static QObject* renDirConfig();
0075 
0076   /** Get number tracks configuration. */
0077   Q_INVOKABLE static QObject* numberTracksConfig();
0078 
0079   /** Get user actions configuration. */
0080   Q_INVOKABLE static QObject* userActionsConfig();
0081 
0082   /** Get GUI configuration. */
0083   Q_INVOKABLE static QObject* guiConfig();
0084 
0085   /** Get network configuration. */
0086   Q_INVOKABLE static QObject* networkConfig();
0087 
0088   /** Get playlist configuration. */
0089   Q_INVOKABLE static QObject* playlistConfig();
0090 
0091   /** Get find/replace configuration. */
0092   Q_INVOKABLE static QObject* findReplaceConfig();
0093 
0094   /** Get main window configuration. */
0095   Q_INVOKABLE static QObject* mainWindowConfig();
0096 };