TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
qmmpplugincache_p.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2013-2024 by Ilya Kotov *
3  * forkotov02@ya.ru *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19  ***************************************************************************/
20 
21 #ifndef QMMPPLUGINCACHE_P_H
22 #define QMMPPLUGINCACHE_P_H
23 
24 #include <QSettings>
25 #include "qmmp_export.h"
26 
27 class DecoderFactory;
28 class OutputFactory;
29 class EngineFactory;
30 class EffectFactory;
31 class InputSourceFactory;
32 
37 {
38 public:
39  QmmpPluginCache(const QString &file, QSettings *settings);
40 
41  const QString shortName() const;
42  const QString file() const;
43  const QStringList &filters() const;
44  const QStringList &contentTypes() const;
45  const QStringList &protocols() const;
46  int priority() const;
47  bool hasError() const;
48 
49  DecoderFactory *decoderFactory();
50  OutputFactory *outputFactory();
51  EngineFactory *engineFactory();
52  EffectFactory *effectFactory();
53  InputSourceFactory *inputSourceFactory();
54 
55  static void cleanup(QSettings *settings);
56 
57 private:
58  QObject *instance();
59 
60  QString m_path;
61  QString m_shortName;
62  QStringList m_filters;
63  QStringList m_contentTypes;
64  QStringList m_protocols;
65  bool m_error = false;
66  QObject *m_instance = nullptr;
67  DecoderFactory *m_decoderFactory = nullptr;
68  OutputFactory *m_outputFactory = nullptr;
69  EngineFactory *m_engineFactory = nullptr;
70  EffectFactory *m_effectFactory = nullptr;
71  InputSourceFactory *m_inputSourceFactory = nullptr;
72  int m_priority = 0;
73 
74 };
75 
76 #endif
Transport plugin interface.
Effect plugin interface (effect factory).
Definition: effectfactory.h:54
QStringList m_filters
Input plugin interface (decoder factory).
QStringList m_contentTypes
#define QMMP_EXPORT
Definition: qmmp_export.h:29
QStringList m_protocols
Engine plugin interface.
Definition: enginefactory.h:51
Output plugin interface (output factory).
Definition: outputfactory.h:44