Qmmp
Loading...
Searching...
No Matches
effectfactory.h
1/***************************************************************************
2 * Copyright (C) 2007-2025 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#ifndef EFFECTFACTORY_H
21#define EFFECTFACTORY_H
22
23#include <QObject>
24#include "qmmp_export.h"
25
26class QObject;
27class QWidget;
28class QDialog;
29class Effect;
30
52
57{
58public:
62 virtual EffectProperties properties() const = 0;
66 virtual Effect *create() = 0;
72 virtual QDialog *createSettings(QWidget *parent) = 0;
77 virtual void showAbout(QWidget *parent) = 0;
81 virtual QString translation() const = 0;
82};
83
84Q_DECLARE_INTERFACE(EffectFactory, "EffectFactory/1.0")
85
86#endif
Effect plugin interface (effect factory).
Definition effectfactory.h:57
virtual QString translation() const =0
virtual EffectProperties properties() const =0
virtual QDialog * createSettings(QWidget *parent)=0
virtual void showAbout(QWidget *parent)=0
virtual Effect * create()=0
The Effect class provides the base interface class of audio effects.
Definition effect.h:36
Structure to store effect plugin properties.
Definition effectfactory.h:35
bool hasAbout
Definition effectfactory.h:48
Priority
Definition effectfactory.h:40
@ EFFECT_PRIORITY_HIGH
Definition effectfactory.h:43
@ EFFECT_PRIORITY_DEFAULT
Definition effectfactory.h:42
@ EFFECT_PRIORITY_LOW
Definition effectfactory.h:41
bool hasSettings
Definition effectfactory.h:49
QString name
Definition effectfactory.h:46
int priority
Definition effectfactory.h:50
QString shortName
Definition effectfactory.h:47