Qmmp
outputfactory.h
1 /***************************************************************************
2  * Copyright (C) 2007-2018 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 
26 class QObject;
27 class QString;
28 class QIODevice;
29 class QWidget;
30 class Volume;
31 class Decoder;
32 class Output;
33 
37 class QMMP_EXPORT OutputProperties
38 {
39 public:
44  {
45  hasAbout = false;
46  hasSettings = false;
47  }
48  QString name;
49  QString shortName;
50  bool hasAbout;
51  bool hasSettings;
52 };
57 {
58 public:
62  virtual ~OutputFactory() {}
66  virtual OutputProperties properties() const = 0;
70  virtual Output *create() = 0;
75  virtual Volume *createVolume() = 0;
80  virtual void showSettings(QWidget *parent) = 0;
85  virtual void showAbout(QWidget *parent) = 0;
89  virtual QString translation() const = 0;
90 };
91 
92 Q_DECLARE_INTERFACE(OutputFactory, "OutputFactory/1.0")
93 
94 #endif
QString shortName
Definition: outputfactory.h:49
The Volume class provides asbtract volume interface.
Definition: volume.h:48
bool hasSettings
Definition: outputfactory.h:51
Helper class to store output plugin properies.
Definition: outputfactory.h:37
The Output class provides the base interface class of audio outputs.
Definition: output.h:27
QString name
Definition: outputfactory.h:48
OutputProperties()
Definition: outputfactory.h:43
The Decoder class provides the base interface class of audio decoders.
Definition: decoder.h:25
bool hasAbout
Definition: outputfactory.h:50
virtual ~OutputFactory()
Definition: outputfactory.h:62
Output plugin interface (output factory).
Definition: outputfactory.h:56