}
case MediaSource::CaptureDevice:
case MediaSource::AudioVideoCapture:
+#ifndef QT_NO_PHONON_EFFECT
dbg.nospace() << "AudioVideoCapture(A:" << source.audioCaptureDevice().name()
<< "/V: " << source.videoCaptureDevice().name() << ")";
+#else
+ dbg.nospace() << "AudioVideoCapture(A:/V: )";
+#endif
break;
case MediaSource::Empty:
dbg.nospace() << "Empty()";
#ifndef PHONON_VLC_VOLUMEFADEREFFECT_H
#define PHONON_VLC_VOLUMEFADEREFFECT_H
+#ifndef QT_NO_PHONON_EFFECT
+
#include <phonon/volumefaderinterface.h>
#include <QtCore/QDateTime>
} // namespace VLC
} // namespace Phonon
+#endif // QT_NO_PHONON_EFFECT
+
#endif // PHONON_VLC_VOLUMEFADEREFFECT_H
Backend::Backend(QObject *parent, const QVariantList &)
: QObject(parent)
, m_deviceManager(0)
+#ifndef QT_NO_PHONON_EFFECT
, m_effectManager(0)
+#endif // QT_NO_PHONON_EFFECT
{
self = this;
}
m_deviceManager = new DeviceManager(this);
+#ifndef QT_NO_PHONON_EFFECT
m_effectManager = new EffectManager(this);
+#endif // QT_NO_PHONON_EFFECT
}
Backend::~Backend()
case VideoGraphicsObjectClass:
return new VideoGraphicsObject(parent);
#endif
+#ifndef QT_NO_PHONON_EFFECT
case EffectClass:
return effectManager()->createEffect(args[0].toInt(), parent);
+#endif // QT_NO_PHONON_EFFECT
case VideoWidgetClass:
return new VideoWidget(qobject_cast<QWidget *>(parent));
// case VolumeFaderEffectClass:
return deviceManager()->deviceIds(type);
}
break;
+#ifndef QT_NO_PHONON_EFFECT
case Phonon::EffectType: {
QList<EffectInfo> effectList = effectManager()->effects();
for (int eff = 0; eff < effectList.size(); ++eff) {
}
}
break;
+#endif // QT_NO_PHONON_EFFECT
case Phonon::SubtitleType: {
list << GlobalSubtitles::instance()->globalIndexes();
}
return deviceManager()->deviceProperties(index);
}
break;
+#ifndef QT_NO_PHONON_EFFECT
case Phonon::EffectType: {
const QList<EffectInfo> effectList = effectManager()->effects();
if (index >= 0 && index <= effectList.size()) {
}
}
break;
+#endif // QT_NO_PHONON_EFFECT
case Phonon::SubtitleType: {
const SubtitleDescription description = GlobalSubtitles::instance()->fromIndex(index);
ret.insert("name", description.name());
return true;
}
+#ifndef QT_NO_PHONON_EFFECT
VolumeFaderEffect *effect = qobject_cast<VolumeFaderEffect *>(source);
if (effect) {
sinkNode->connectToMediaObject(effect->mediaObject());
return true;
}
+#endif // QT_NO_PHONON_EFFECT
}
warning() << "Linking" << source->metaObject()->className() << "to" << sink->metaObject()->className() << "failed";
return true;
}
+#ifndef QT_NO_PHONON_EFFECT
VolumeFaderEffect *const effect = qobject_cast<VolumeFaderEffect *>(source);
if (effect) {
sinkNode->disconnectFromMediaObject(effect->mediaObject());
return true;
}
+#endif // QT_NO_PHONON_EFFECT
}
return false;
return m_deviceManager;
}
+#ifndef QT_NO_PHONON_EFFECT
EffectManager *Backend::effectManager() const
{
return m_effectManager;
}
+#endif // QT_NO_PHONON_EFFECT
} // namespace VLC
} // namespace Phonon
namespace VLC
{
class DeviceManager;
+#ifndef QT_NO_PHONON_EFFECT
class EffectManager;
+#endif // QT_NO_PHONON_EFFECT
/** \brief Backend class for Phonon-VLC.
*
/// \return The device manager that is associated with this backend object
DeviceManager *deviceManager() const;
+#ifndef QT_NO_PHONON_EFFECT
/// \return The effect manager that is associated with this backend object.
EffectManager *effectManager() const;
+#endif // QT_NO_PHONON_EFFECT
/**
* Creates a backend object of the desired class and with the desired parent. Extra arguments can be provided.
mutable QStringList m_supportedMimeTypes;
DeviceManager *m_deviceManager;
+#ifndef QT_NO_PHONON_EFFECT
EffectManager *m_effectManager;
+#endif // QT_NO_PHONON_EFFECT
};
} // namespace VLC
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef QT_NO_PHONON_EFFECT
+
#include "effect.h"
#include "effectmanager.h"
} // Namespace Phonon::VLC
#include "phonon-vlc/moc_effect.h"
+
+#endif // QT_NO_PHONON_EFFECT
\ No newline at end of file
#ifndef PHONON_VLC_EFFECT_H
#define PHONON_VLC_EFFECT_H
+#ifndef QT_NO_PHONON_EFFECT
+
#include "sinknode.h"
#include "effectmanager.h"
}
} // Namespace Phonon::VLC
+#endif // QT_NO_PHONON_EFFECT
+
#endif // PHONON_VLC_EFFECT_H
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef QT_NO_PHONON_EFFECT
+
#include "effectmanager.h"
#include <vlc/vlc.h>
} // namespace VLC
} // namespace Phonon
+
#include "phonon-vlc/moc_effectmanager.h"
+
+#endif // QT_NO_PHONON_EFFECT
#ifndef Phonon_VLC_EFFECTMANAGER_H
#define Phonon_VLC_EFFECTMANAGER_H
+#ifndef QT_NO_PHONON_EFFECT
+
#include <QtCore/QObject>
namespace Phonon {
} // namespace VLC
} // namespace Phonon
+#endif // QT_NO_PHONON_EFFECT
+
#endif // Phonon_VLC_EFFECTMANAGER_H
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef QT_NO_PHONON_EFFECT
+
#include <vlc/libvlc_version.h>
#if (LIBVLC_VERSION_INT >= LIBVLC_VERSION(2, 2, 0, 0))
#include "phonon-vlc/moc_equalizereffect.h"
#endif // LIBVLC_VERSION
+
+#endif // QT_NO_PHONON_EFFECT
\ No newline at end of file
#ifndef PHONON_VLC_EQUALIZEREFFECT_H
#define PHONON_VLC_EQUALIZEREFFECT_H
+#ifndef QT_NO_PHONON_EFFECT
+
#include <QtCore/QObject>
#include <phonon/effectinterface.h>
} // namespace VLC
} // namespace Phonon
+#endif // QT_NO_PHONON_EFFECT
+
#endif // PHONON_VLC_EQUALIZEREFFECT_H