|
1 /* This file is part of the KDE project. |
|
2 |
|
3 Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 |
|
5 This library is free software: you can redistribute it and/or modify |
|
6 it under the terms of the GNU Lesser General Public License as published by |
|
7 the Free Software Foundation, either version 2.1 or 3 of the License. |
|
8 |
|
9 This library is distributed in the hope that it will be useful, |
|
10 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 GNU Lesser General Public License for more details. |
|
13 |
|
14 You should have received a copy of the GNU Lesser General Public License |
|
15 along with this library. If not, see <http://www.gnu.org/licenses/>. |
|
16 */ |
|
17 |
|
18 #ifndef Phonon_GSTREAMER_EFFECTMANAGER_H |
|
19 #define Phonon_GSTREAMER_EFFECTMANAGER_H |
|
20 |
|
21 #include "common.h" |
|
22 |
|
23 #include <QtCore/QObject> |
|
24 #include <QtCore/QTimer> |
|
25 #include <QtCore/QStringList> |
|
26 |
|
27 #include <gst/gst.h> |
|
28 |
|
29 QT_BEGIN_NAMESPACE |
|
30 |
|
31 namespace Phonon |
|
32 { |
|
33 namespace Gstreamer |
|
34 { |
|
35 class Backend; |
|
36 class EffectManager; |
|
37 |
|
38 class EffectInfo |
|
39 { |
|
40 public : |
|
41 EffectInfo(const QString &name, |
|
42 const QString &description, |
|
43 const QString &author); |
|
44 |
|
45 QString name() const |
|
46 { |
|
47 return m_name; |
|
48 } |
|
49 QString description() const |
|
50 { |
|
51 return m_description; |
|
52 } |
|
53 QString author() const |
|
54 { |
|
55 return m_author; |
|
56 } |
|
57 QStringList properties() const |
|
58 { |
|
59 return m_properties; |
|
60 } |
|
61 void addProperty(QString propertyName) |
|
62 { |
|
63 m_properties.append(propertyName); |
|
64 } |
|
65 |
|
66 private: |
|
67 QString m_name; |
|
68 QString m_description; |
|
69 QString m_author; |
|
70 QStringList m_properties; |
|
71 }; |
|
72 |
|
73 class EffectManager : public QObject |
|
74 { |
|
75 Q_OBJECT |
|
76 public: |
|
77 EffectManager(Backend *parent); |
|
78 virtual ~EffectManager(); |
|
79 const QList<EffectInfo*> audioEffects() const; |
|
80 |
|
81 private: |
|
82 Backend *m_backend; |
|
83 QList <EffectInfo*> m_audioEffectList; |
|
84 QList <EffectInfo*> m_visualizationList; |
|
85 }; |
|
86 } |
|
87 } // namespace Phonon::Gstreamer |
|
88 |
|
89 QT_END_NAMESPACE |
|
90 |
|
91 #endif // Phonon_GSTREAMER_EFFECTMANAGER_H |