summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/backend.cpp
diff options
context:
space:
mode:
authorFrans Englich <frans.englich@nokia.com>2009-07-02 13:51:37 (GMT)
committerFrans Englich <frans.englich@nokia.com>2009-07-02 13:51:37 (GMT)
commita27d314863d38821f5122973be3fe5306ed82ef1 (patch)
tree9163561f6c36e3077518819b091f5aa5ad7b649b /src/3rdparty/phonon/mmf/backend.cpp
parentdcfda58e029042e8d7339833bdb2d6a90bd3e30f (diff)
downloadQt-a27d314863d38821f5122973be3fe5306ed82ef1.zip
Qt-a27d314863d38821f5122973be3fe5306ed82ef1.tar.gz
Qt-a27d314863d38821f5122973be3fe5306ed82ef1.tar.bz2
Pouring.
Diffstat (limited to 'src/3rdparty/phonon/mmf/backend.cpp')
-rw-r--r--src/3rdparty/phonon/mmf/backend.cpp101
1 files changed, 101 insertions, 0 deletions
diff --git a/src/3rdparty/phonon/mmf/backend.cpp b/src/3rdparty/phonon/mmf/backend.cpp
new file mode 100644
index 0000000..5b78158
--- /dev/null
+++ b/src/3rdparty/phonon/mmf/backend.cpp
@@ -0,0 +1,101 @@
+/* This file is part of the KDE project.
+
+Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+
+This library is free software: you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation, either version 2.1 or 3 of the License.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public License
+along with this library. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+#include <QStringList>
+#include <QtPlugin>
+
+#include "backend.h"
+#include "audiooutput.h"
+#include "mediaobject.h"
+
+using namespace Phonon;
+using namespace Phonon::MMF;
+
+Backend::Backend(QObject *parent)
+{
+ setParent(parent);
+
+ setProperty("identifier", QLatin1String("mmf"));
+ setProperty("backendName", QLatin1String("MMF"));
+ setProperty("backendComment", QLatin1String("MMF Backend"));
+ setProperty("backendVersion", QLatin1String("0.1"));
+ setProperty("backendWebsite", QLatin1String("http://www.qtsoftware.com/"));
+}
+
+QObject *Backend::createObject(BackendInterface::Class c, QObject *parent, const QList<QVariant> &)
+{
+ switch(c)
+ {
+ case AudioOutputClass:
+ return new AudioOutput(this, parent);
+ case MediaObjectClass:
+ return new MediaObject(parent);
+ case VolumeFaderEffectClass:
+ /* Fallthrough. */
+ case VisualizationClass:
+ /* Fallthrough. */
+ case VideoDataOutputClass:
+ /* Fallthrough. */
+ case EffectClass:
+ /* Fallthrough. */
+ case VideoWidgetClass:
+ return 0;
+ }
+
+ Q_ASSERT_X(false, Q_FUNC_INFO,
+ "This line should never be reached.");
+ return 0;
+}
+
+QList<int> Backend::objectDescriptionIndexes(ObjectDescriptionType) const
+{
+ return QList<int>();
+}
+
+QHash<QByteArray, QVariant> Backend::objectDescriptionProperties(ObjectDescriptionType, int) const
+{
+ return QHash<QByteArray, QVariant>();
+}
+
+bool Backend::startConnectionChange(QSet<QObject *>)
+{
+ return false;
+}
+
+bool Backend::connectNodes(QObject *, QObject *)
+{
+ return false;
+}
+
+bool Backend::disconnectNodes(QObject *, QObject *)
+{
+ return false;
+}
+
+bool Backend::endConnectionChange(QSet<QObject *>)
+{
+ return false;
+}
+
+QStringList Backend::availableMimeTypes() const
+{
+ return QStringList();
+}
+
+Q_EXPORT_PLUGIN2(phonon_mmf, Phonon::MMF::Backend);
+