phonon/effect.h Source File

effect.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2005-2007 Matthias Kretz <kretz@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) version 3, or any
8  later version accepted by the membership of KDE e.V. (or its
9  successor approved by the membership of KDE e.V.), Nokia Corporation
10  (or its successors, if any) and the KDE Free Qt Foundation, which shall
11  act as a proxy defined in Section 6 of version 3 of the license.
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public
19  License along with this library. If not, see <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 
24 #ifndef PHONON_EFFECT_H
25 #define PHONON_EFFECT_H
26 
27 #include "phonondefs.h"
28 #include <QtCore/QObject>
29 #include "objectdescription.h"
30 #include "medianode.h"
31 
34 
35 #ifndef QT_NO_PHONON_EFFECT
36 
37 class QString;
38 template<class T> class QList;
39 
40 namespace Phonon
41 {
42  class EffectParameter;
43  class EffectPrivate;
44 
65  class PHONON_EXPORT Effect : public QObject, public MediaNode
66  {
67  Q_OBJECT
69 
70  public:
71  ~Effect();
72 
73 //X enum Type {
74 //X AudioEffect,
75 //X VideoEffect
76 //X };
77 
85  explicit Effect(const EffectDescription &description, QObject *parent = 0);
86 
87 //X Type type() const;
88 
93  EffectDescription description() const;
94 
102  QList<EffectParameter> parameters() const;
103 
104  QVariant parameterValue(const EffectParameter&) const;
105  void setParameterValue(const EffectParameter&, const QVariant &value);
106 
107  protected:
108  Effect(EffectPrivate &dd, QObject *parent);
109  };
110 } //namespace Phonon
111 
112 #endif // QT_NO_EFFECT
113 
116 
117 // vim: sw=4 ts=4 tw=80
118 #endif // PHONON_EFFECT_H
119 
#define QT_END_NAMESPACE
Definition: qglobal.h:128
#define QT_BEGIN_HEADER
Definition: qglobal.h:141
#define QT_BEGIN_NAMESPACE
Definition: qglobal.h:127
Provides a tuple of enduser visible name and description.
This class describes one parameter of an effect.
#define Q_OBJECT
Definition: qobjectdefs.h:157
GLsizei const GLfloat * value
Definition: GLee.h:1742
Effects that can be inserted into a Path.
Definition: effect.h:65
The KDE Multimedia classes.
#define K_DECLARE_PRIVATE(Class)
Definition: phonondefs.h:46
#define PHONON_EXPORT
Definition: phonon_export.h:38
#define QT_END_HEADER
Definition: qglobal.h:142