Qmmp
Loading...
Searching...
No Matches
effectfactory.h
1/***************************************************************************
2 * Copyright (C) 2007-2022 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 Effect;
29
51
56{
57public:
61 virtual const EffectProperties properties() const = 0;
65 virtual Effect *create() = 0;
70 virtual void showSettings(QWidget *parent) = 0;
75 virtual void showAbout(QWidget *parent) = 0;
79 virtual QString translation() const = 0;
80};
81
82Q_DECLARE_INTERFACE(EffectFactory, "EffectFactory/1.0")
83
84#endif
Effect plugin interface (effect factory).
Definition effectfactory.h:56
virtual const EffectProperties properties() const =0
virtual QString translation() const =0
virtual void showSettings(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:34
bool hasAbout
Definition effectfactory.h:47
Priority
Definition effectfactory.h:39
@ EFFECT_PRIORITY_HIGH
Definition effectfactory.h:42
@ EFFECT_PRIORITY_DEFAULT
Definition effectfactory.h:41
@ EFFECT_PRIORITY_LOW
Definition effectfactory.h:40
bool hasSettings
Definition effectfactory.h:48
QString name
Definition effectfactory.h:45
int priority
Definition effectfactory.h:49
QString shortName
Definition effectfactory.h:46