phonon/path.h Source File

path.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 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 #ifndef PHONON_PATH_H
24 #define PHONON_PATH_H
25 
26 #include "phonon_export.h"
27 #include "objectdescription.h"
28 
29 #include <QtCore/QExplicitlySharedDataPointer>
30 
33 
34 template<class T> class QList;
35 
36 namespace Phonon
37 {
38 
39 class PathPrivate;
40 class Effect;
41 class MediaNode;
42 
64 {
65  friend class FactoryPrivate;
66  public:
73  ~Path();
74 
84  Path();
85 
91  Path(const Path &);
92 
99  bool isValid() const;
100  //MediaStreamTypes mediaStreamTypes() const;
101 
102 #ifndef QT_NO_PHONON_EFFECT
103 
124  Effect *insertEffect(const EffectDescription &desc, Effect *insertBefore = 0);
125 
147  bool insertEffect(Effect *newEffect, Effect *insertBefore = 0);
148 
164  bool removeEffect(Effect *effect);
165 
176  QList<Effect *> effects() const;
177 #endif //QT_NO_PHONON_EFFECT
178 
184  bool reconnect(MediaNode *source, MediaNode *sink);
185 
190  bool disconnect();
191 
197  Path &operator=(const Path &p);
198 
202  bool operator==(const Path &p) const;
203 
207  bool operator!=(const Path &p) const;
208 
212  MediaNode *source() const;
213 
217  MediaNode *sink() const;
218 
219 
220  protected:
221  friend class PathPrivate;
223 };
224 
237 
238 } // namespace Phonon
239 
242 
243 #endif // PHONON_PATH_H
GLsizei GLsizei GLchar * source
Definition: GLee.h:1721
#define QT_END_NAMESPACE
Definition: qglobal.h:128
#define QT_BEGIN_HEADER
Definition: qglobal.h:141
GLsizei GLenum GLboolean sink
Definition: GLee.h:901
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
Definition: node.h:577
#define QT_BEGIN_NAMESPACE
Definition: qglobal.h:127
Provides a tuple of enduser visible name and description.
bool operator!=(const QByteArray &a1, const QByteArray &a2)
Definition: qbytearray.h:533
Effects that can be inserted into a Path.
Definition: effect.h:65
GLfloat GLfloat p
Definition: GLee.h:5416
The KDE Multimedia classes.
QExplicitlySharedDataPointer< PathPrivate > d
Definition: path.h:222
#define PHONON_EXPORT
Definition: phonon_export.h:38
#define QT_END_HEADER
Definition: qglobal.h:142
Connection object providing convenient effect insertion.
Definition: path.h:63