summaryrefslogtreecommitdiffstats
path: root/tests/auto/mediaobject/dummy/backend.h
diff options
context:
space:
mode:
authorKurt Korbatits <kurt.korbatits@nokia.com>2009-06-29 04:21:44 (GMT)
committerKurt Korbatits <kurt.korbatits@nokia.com>2009-06-29 04:21:44 (GMT)
commit157b2ee3f49fd6085e61965b1f1a239c569a4fea (patch)
treedf0c2f4252329ef938b8b108b2fff556f6aaa060 /tests/auto/mediaobject/dummy/backend.h
parent06eec9e1e1665f2551344d8f6938e9e2eb95f34f (diff)
downloadQt-157b2ee3f49fd6085e61965b1f1a239c569a4fea.zip
Qt-157b2ee3f49fd6085e61965b1f1a239c569a4fea.tar.gz
Qt-157b2ee3f49fd6085e61965b1f1a239c569a4fea.tar.bz2
Added dummy backend for phonon for testing.
Diffstat (limited to 'tests/auto/mediaobject/dummy/backend.h')
-rw-r--r--tests/auto/mediaobject/dummy/backend.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/tests/auto/mediaobject/dummy/backend.h b/tests/auto/mediaobject/dummy/backend.h
new file mode 100644
index 0000000..20af216
--- /dev/null
+++ b/tests/auto/mediaobject/dummy/backend.h
@@ -0,0 +1,55 @@
+#ifndef PHONON_DUMMY_BACKEND_H
+#define PHONON_DUMMY_BACKEND_H
+
+#include <phonon/objectdescription.h>
+#include <phonon/backendinterface.h>
+
+#include <phonon/medianode.h>
+
+#include <QtCore/QList>
+#include <QtCore/QPointer>
+#include <QtCore/QStringList>
+#include <QtCore/QTimer>
+
+QT_BEGIN_NAMESPACE
+
+namespace Phonon
+{
+namespace Dummy
+{
+class AudioOutput;
+class MediaObject;
+
+class Backend : public QObject, public BackendInterface
+{
+ Q_OBJECT
+ Q_INTERFACES(Phonon::BackendInterface)
+
+public:
+ Backend(QObject *parent = 0, const QVariantList & = QVariantList());
+ virtual ~Backend();
+
+ QObject *createObject(BackendInterface::Class, QObject *parent, const QList<QVariant> &args);
+
+ QStringList availableMimeTypes() const;
+
+ QList<int> objectDescriptionIndexes(ObjectDescriptionType type) const;
+ QHash<QByteArray, QVariant> objectDescriptionProperties(ObjectDescriptionType type, int index) const;
+
+ bool startConnectionChange(QSet<QObject *>);
+ bool connectNodes(QObject *, QObject *);
+ bool disconnectNodes(QObject *, QObject *);
+ bool endConnectionChange(QSet<QObject *>);
+
+Q_SIGNALS:
+ void objectDescriptionChanged(ObjectDescriptionType);
+
+private:
+ QList<QPointer<AudioOutput> > m_audioOutputs;
+};
+}
+} // namespace Phonon::Dummy
+
+QT_END_NAMESPACE
+
+#endif // PHONON_DUMMY_BACKEND_H