|
1 /* This file is part of the KDE project. |
|
2 |
|
3 Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 |
|
5 This library is free software: you can redistribute it and/or modify |
|
6 it under the terms of the GNU Lesser General Public License as published by |
|
7 the Free Software Foundation, either version 2.1 or 3 of the License. |
|
8 |
|
9 This library is distributed in the hope that it will be useful, |
|
10 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 GNU Lesser General Public License for more details. |
|
13 |
|
14 You should have received a copy of the GNU Lesser General Public License |
|
15 along with this library. If not, see <http://www.gnu.org/licenses/>. |
|
16 */ |
|
17 |
|
18 #ifndef PHONON_BACKEND_H |
|
19 #define PHONON_BACKEND_H |
|
20 |
|
21 #include <phonon/backendinterface.h> |
|
22 #include <phonon/phononnamespace.h> |
|
23 |
|
24 #include <QtCore/QList> |
|
25 |
|
26 |
|
27 |
|
28 QT_BEGIN_NAMESPACE |
|
29 |
|
30 namespace Phonon |
|
31 { |
|
32 namespace WaveOut |
|
33 { |
|
34 class AudioOutput; |
|
35 class MediaObject; |
|
36 |
|
37 class Backend : public QObject, public Phonon::BackendInterface |
|
38 { |
|
39 Q_OBJECT |
|
40 Q_INTERFACES(Phonon::BackendInterface) |
|
41 public: |
|
42 Backend(QObject *parent = 0, const QVariantList & = QVariantList()); |
|
43 virtual ~Backend(); |
|
44 |
|
45 QObject *createObject(Phonon::BackendInterface::Class, QObject *parent, const QList<QVariant> &args); |
|
46 |
|
47 bool supportsVideo() const; |
|
48 QStringList availableMimeTypes() const; |
|
49 |
|
50 QList<int> objectDescriptionIndexes(Phonon::ObjectDescriptionType type) const; |
|
51 QHash<QByteArray, QVariant> objectDescriptionProperties(Phonon::ObjectDescriptionType type, int index) const; |
|
52 |
|
53 bool connectNodes(QObject *, QObject *); |
|
54 bool disconnectNodes(QObject *, QObject *); |
|
55 |
|
56 //transaction management |
|
57 bool startConnectionChange(QSet<QObject *>); |
|
58 bool endConnectionChange(QSet<QObject *>); |
|
59 |
|
60 Q_SIGNALS: |
|
61 void objectDescriptionChanged(ObjectDescriptionType); |
|
62 |
|
63 }; |
|
64 } |
|
65 } |
|
66 |
|
67 QT_END_NAMESPACE |
|
68 |
|
69 #endif // PHONON_BACKEND_H |