Qmmp
Loading...
Searching...
No Matches
outputfactory.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
21#ifndef OUTPUTFACTORY_H
22#define OUTPUTFACTORY_H
23
24#include "qmmp_export.h"
25
26class QObject;
27class QString;
28class QIODevice;
29class QWidget;
30class QDialog;
31class Volume;
32class Decoder;
33class Output;
34
39{
40 QString name;
41 QString shortName;
42 bool hasAbout = false;
43 bool hasSettings = false;
44};
45
49{
50public:
54 virtual ~OutputFactory() {}
58 virtual OutputProperties properties() const = 0;
62 virtual Output *create() = 0;
67 virtual Volume *createVolume() = 0;
73 virtual QDialog *createSettings(QWidget *parent) = 0;
78 virtual void showAbout(QWidget *parent) = 0;
82 virtual QString translation() const = 0;
83};
84
85Q_DECLARE_INTERFACE(OutputFactory, "OutputFactory/1.0")
86
87#endif
The Decoder class provides the base interface class of audio decoders.
Definition decoder.h:27
Output plugin interface (output factory).
Definition outputfactory.h:49
virtual QString translation() const =0
virtual OutputProperties properties() const =0
virtual QDialog * createSettings(QWidget *parent)=0
virtual void showAbout(QWidget *parent)=0
virtual ~OutputFactory()
Definition outputfactory.h:54
virtual Volume * createVolume()=0
virtual Output * create()=0
The Output class provides the base interface class of audio outputs.
Definition output.h:28
The Volume class provides asbtract volume interface.
Definition volume.h:52
Helper structure to store output plugin properies.
Definition outputfactory.h:39
bool hasAbout
Definition outputfactory.h:42
bool hasSettings
Definition outputfactory.h:43
QString name
Definition outputfactory.h:40
QString shortName
Definition outputfactory.h:41