source: trunk/src/3rdparty/phonon/waveout/backend.h

Last change on this file was 2, checked in by Dmitry A. Kuminov, 17 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 2.1 KB
Line 
1/* This file is part of the KDE project.
2
3Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4
5This library is free software: you can redistribute it and/or modify
6it under the terms of the GNU Lesser General Public License as published by
7the Free Software Foundation, either version 2.1 or 3 of the License.
8
9This library is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU Lesser General Public License for more details.
13
14You should have received a copy of the GNU Lesser General Public License
15along 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
28QT_BEGIN_NAMESPACE
29
30namespace 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
67QT_END_NAMESPACE
68
69#endif // PHONON_BACKEND_H
Note: See TracBrowser for help on using the repository browser.