Qmmp
Loading...
Searching...
No Matches
outputfactory.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
21#ifndef OUTPUTFACTORY_H
22#define OUTPUTFACTORY_H
23
24#include "qmmp_export.h"
25
26class QObject;
27class QString;
28class QIODevice;
29class QWidget;
30class Volume;
31class Decoder;
32class Output;
33
38{
39 QString name;
40 QString shortName;
41 bool hasAbout = false;
42 bool hasSettings = false;
43};
48{
49public:
53 virtual ~OutputFactory() {}
57 virtual OutputProperties properties() const = 0;
61 virtual Output *create() = 0;
66 virtual Volume *createVolume() = 0;
71 virtual void showSettings(QWidget *parent) = 0;
76 virtual void showAbout(QWidget *parent) = 0;
80 virtual QString translation() const = 0;
81};
82
83Q_DECLARE_INTERFACE(OutputFactory, "OutputFactory/1.0")
84
85#endif
The Decoder class provides the base interface class of audio decoders.
Definition decoder.h:26
Output plugin interface (output factory).
Definition outputfactory.h:48
virtual QString translation() const =0
virtual void showSettings(QWidget *parent)=0
virtual OutputProperties properties() const =0
virtual void showAbout(QWidget *parent)=0
virtual ~OutputFactory()
Definition outputfactory.h:53
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:38
bool hasAbout
Definition outputfactory.h:41
bool hasSettings
Definition outputfactory.h:42
QString name
Definition outputfactory.h:39
QString shortName
Definition outputfactory.h:40