phonon/backendcapabilities.h Source File

backendcapabilities.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2005-2006 Matthias Kretz <kretz@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) version 3, or any
8  later version accepted by the membership of KDE e.V. (or its
9  successor approved by the membership of KDE e.V.), Nokia Corporation
10  (or its successors, if any) and the KDE Free Qt Foundation, which shall
11  act as a proxy defined in Section 6 of version 3 of the license.
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public
19  License along with this library. If not, see <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #ifndef Phonon_BACKENDCAPABILITIES_H
24 #define Phonon_BACKENDCAPABILITIES_H
25 
26 #include "phonon_export.h"
27 #include "objectdescription.h"
28 
29 #include <QtCore/QObject>
30 
33 
34 #ifdef __QT_SYNCQT__
35 // Tell syncqt that the BackendCapabilities namespace should be treated like a class
36 #pragma qt_class(Phonon::BackendCapabilities)
37 #pragma qt_sync_stop_processing
38 #endif
39 
40 template<class T> class QList;
41 class QStringList;
42 
43 namespace Phonon
44 {
45 
52 namespace BackendCapabilities
53 {
59  class Notifier : public QObject
60  {
61  Q_OBJECT
62  Q_SIGNALS:
67  void capabilitiesChanged();
68 
77 
85 #ifndef QT_NO_PHONON_AUDIOCAPTURE
87 #endif //QT_NO_PHONON_AUDIOCAPTURE
88  };
89 
105 
112 
120  PHONON_EXPORT bool isMimeTypeAvailable(const QString &mimeType);
121 
129 
136 #ifndef QT_NO_PHONON_AUDIOCAPTURE
138 #endif //QT_NO_PHONON_AUDIOCAPTURE
139 
146 // PHONON_EXPORT QList<VideoOutputDevice> availableVideoOutputDevices();
147 
154 // PHONON_EXPORT QList<VideoCaptureDevice> availableVideoCaptureDevices();
155 
162 // PHONON_EXPORT QList<VisualizationDescription> availableVisualizations();
163 
170 #ifndef QT_NO_PHONON_EFFECT
172 #endif //QT_NO_PHONON_EFFECT
173 
174 //X /**
175 //X * Returns descriptions for the video effects the backend supports.
176 //X *
177 //X * \return A list of VideoEffectDescription objects that give a name and
178 //X * description for every supported video effect.
179 //X */
180 //X PHONON_EXPORT QList<EffectDescription> availableVideoEffects();
181 
188 // PHONON_EXPORT QList<AudioCodecDescription> availableAudioCodecs();
189 
196 // PHONON_EXPORT QList<VideoCodecDescription> availableVideoCodecs();
197 
204 // PHONON_EXPORT QList<ContainerFormatDescription> availableContainerFormats();
205 } // namespace BackendCapabilities
206 } // namespace Phonon
207 
210 
211 #endif // Phonon_BACKENDCAPABILITIES_H
212 // vim: sw=4 ts=4 tw=80
#define QT_END_NAMESPACE
Definition: qglobal.h:128
#define QT_BEGIN_HEADER
Definition: qglobal.h:141
#define Q_SIGNALS
Definition: qobjectdefs.h:72
void availableAudioOutputDevicesChanged()
This signal is emitted when audio output devices were plugged or unplugged.
void availableAudioCaptureDevicesChanged()
This signal is emitted when audio capture devices were plugged or unplugged.
PHONON_EXPORT QStringList availableMimeTypes()
Returns a list of mime types that the Backend can decode.
Notifications about backend capabilities.
#define QT_BEGIN_NAMESPACE
Definition: qglobal.h:127
void capabilitiesChanged()
This signal is emitted if the capabilities have changed.
PHONON_EXPORT Notifier * notifier()
Use this function to get a QObject pointer to connect to one of the Notifier signals.
PHONON_EXPORT QList< AudioOutputDevice > availableAudioOutputDevices()
Returns the audio output devices the backend supports.
#define Q_OBJECT
Definition: qobjectdefs.h:157
PHONON_EXPORT bool isMimeTypeAvailable(const QString &mimeType)
Often all you want to know is whether one given MIME type can be decoded by the backend.
The KDE Multimedia classes.
PHONON_EXPORT QList< AudioCaptureDevice > availableAudioCaptureDevices()
Returns the audio capture devices the backend supports.
#define PHONON_EXPORT
Definition: phonon_export.h:38
PHONON_EXPORT QList< EffectDescription > availableAudioEffects()
Returns the video output devices the backend supports.
#define QT_END_HEADER
Definition: qglobal.h:142