Phonon::Path
#include <phonon/Path>
Public Member Functions | |
Path () | |
Path (const Path &) | |
~Path () | |
bool | disconnect () |
QList< Effect * > | effects () const |
Effect * | insertEffect (const EffectDescription &desc, Effect *insertBefore=nullptr) |
bool | insertEffect (Effect *newEffect, Effect *insertBefore=nullptr) |
bool | isValid () const |
bool | operator!= (const Path &p) const |
Path & | operator= (const Path &p) |
bool | operator== (const Path &p) const |
bool | reconnect (MediaNode *source, MediaNode *sink) |
bool | removeEffect (Effect *effect) |
MediaNode * | sink () const |
MediaNode * | source () const |
Protected Attributes | |
QExplicitlySharedDataPointer< PathPrivate > | d |
Related Symbols | |
(Note that these are not member symbols.) | |
PHONON_EXPORT Path | createPath (MediaNode *source, MediaNode *sink) |
Detailed Description
Connection object providing convenient effect insertion.
Definition at line 83 of file Phonon-Graph.cpp.
Constructor & Destructor Documentation
◆ ~Path()
Phonon::Path::~Path | ( | ) |
Destroys this reference to the Path.
If the path was valid the connection is not broken as both the source and the sink MediaNodes still keep a reference to the Path.
- See also
- disconnect
◆ Path() [1/2]
Phonon::Path::Path | ( | ) |
Creates an invalid path.
You can still make it a valid path by calling reconnect. To create a path you should use createPath, though.
- See also
- createPath
- isValid
◆ Path() [2/2]
Phonon::Path::Path | ( | const Path & | rhs | ) |
Member Function Documentation
◆ disconnect()
bool Phonon::Path::disconnect | ( | ) |
◆ effects()
Returns a list of Effect objects that are currently used as effects.
The order in the list determines the order the signal is sent through the effects.
- Returns
- A list with all current effects.
- See also
- insertEffect
- removeEffect
◆ insertEffect() [1/2]
Effect * Phonon::Path::insertEffect | ( | const EffectDescription & | desc, |
Effect * | insertBefore = nullptr ) |
Creates and inserts an effect into the path.
You may insert effects of the same class as often as you like, but if you insert the same object, the call will fail.
- Parameters
-
desc The EffectDescription object for the effect to be inserted. insertBefore If you already inserted an effect you can tell with this parameter in which order the data gets processed. If this is 0
the effect is appended at the end of the processing list. If the effect has not been inserted before the method will do nothing and returnfalse
.
- Returns
- Returns a pointer to the effect object if it could be inserted at the specified position. If
0
is returned the effect was not inserted.
- See also
- removeEffect
- effects
◆ insertEffect() [2/2]
Inserts an effect into the path.
You may insert effects of the same class as often as you like, but if you insert the same object, the call will fail.
- Parameters
-
newEffect An Effect object. insertBefore If you already inserted an effect you can tell with this parameter in which order the data gets processed. If this is 0
the effect is appended at the end of the processing list. If the effect has not been inserted before the method will do nothing and returnfalse
.
- Returns
- Returns whether the effect could be inserted at the specified position. If
false
is returned the effect was not inserted.
- See also
- removeEffect
- effects
◆ isValid()
bool Phonon::Path::isValid | ( | ) | const |
◆ operator!=()
bool Phonon::Path::operator!= | ( | const Path & | p | ) | const |
◆ operator=()
◆ operator==()
bool Phonon::Path::operator== | ( | const Path & | p | ) | const |
◆ reconnect()
bool Phonon::Path::reconnect | ( | MediaNode * | source, |
MediaNode * | sink ) |
◆ removeEffect()
bool Phonon::Path::removeEffect | ( | Effect * | effect | ) |
Removes an effect from the path.
If the effect gets deleted while it is still connected the effect will be removed automatically.
- Parameters
-
effect The effect to be removed.
- Returns
- Returns whether the call was successful. If it returns
false
the effect could not be found in the path, meaning it has not been inserted before.
- See also
- insertEffect
- effects
◆ sink()
MediaNode * Phonon::Path::sink | ( | ) | const |
◆ source()
MediaNode * Phonon::Path::source | ( | ) | const |
Friends And Related Symbol Documentation
◆ createPath()
|
related |
Creates a new Path connecting two MediaNodes.
The implementation will automatically select the right format and media type. E.g. connecting a MediaObject and AudioOutput will create a Path object connecting the audio. This might be represented as PCM or perhaps even AC3 depending on the AudioOutput object.
- Parameters
-
source The MediaNode to connect an output from sink The MediaNode to connect to.
Member Data Documentation
◆ d
|
protected |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.