Phonon  4.7.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Classes | Functions
Phonon::BackendCapabilities Namespace Reference

Classes

class  Notifier
 

Functions

PHONON_EXPORT Notifiernotifier ()
 
PHONON_EXPORT QStringList availableMimeTypes ()
 
PHONON_EXPORT bool isMimeTypeAvailable (const QString &mimeType)
 
PHONON_EXPORT QList
< AudioOutputDevice
availableAudioOutputDevices ()
 
PHONON_EXPORT QList
< AudioCaptureDevice
availableAudioCaptureDevices ()
 
PHONON_EXPORT QList
< VideoCaptureDevice
availableVideoCaptureDevices ()
 
PHONON_EXPORT QList
< VideoCaptureDevice
availableAVCaptureDevices ()
 
PHONON_EXPORT QList
< EffectDescription
availableAudioEffects ()
 

Detailed Description

Collection of functions describing the capabilities of the Backend.

Author
Matthias Kretz kretz.nosp@m.@kde.nosp@m..org

Function Documentation

QList< AudioCaptureDevice > Phonon::BackendCapabilities::availableAudioCaptureDevices ( )

Returns the audio capture devices the backend supports.

Returns
A list of AudioCaptureDevice objects that give a name and description for every supported audio capture device.
QList< EffectDescription > Phonon::BackendCapabilities::availableAudioEffects ( )

Returns the visualization effects the backend supports.

Returns
A list of VisualizationEffect objects that give a name and description for every supported visualization effect. Returns descriptions for the audio effects the backend supports.
A list of AudioEffectDescription objects that give a name and description for every supported audio effect.
QList< AudioOutputDevice > Phonon::BackendCapabilities::availableAudioOutputDevices ( )

Returns the audio output devices the backend supports.

Returns
A list of AudioOutputDevice objects that give a name and description for every supported audio output device.
QList< VideoCaptureDevice > Phonon::BackendCapabilities::availableAVCaptureDevices ( )

Returns the video capture devices that have audio capture capabilities that the backend supports. In effect, these are both video and audio capture devices and one can connect them to both a VideoWidget and an AudioOutput, for example.

The resulting VideoCaptureDevices have a "hasaudio" property to true.

Note
These devices appear both in availableVideoCaptureDevices() and availableAudioCaptureDevices()
Warning
Creating two separate MediaObject instances for the same capture device, one for video and the other for audio, most probably doesn't work. But, if there are two separate devices, use Experimental::AVCapture.
See Also
availableVideoCaptureDevices()
availableAudioCaptureDevices()
Experimental::AVCapture
QStringList Phonon::BackendCapabilities::availableMimeTypes ( )

Returns a list of mime types that the Backend can decode.

See Also
isMimeTypeAvailable()
QList< VideoCaptureDevice > Phonon::BackendCapabilities::availableVideoCaptureDevices ( )

Returns the video output devices the backend supports.

Returns
A list of VideoOutputDevice objects that give a name and description for every supported video output device. Returns the video capture devices the backend supports.
A list of VideoCaptureDevice objects that give a name and description for every supported video capture device.
bool Phonon::BackendCapabilities::isMimeTypeAvailable ( const QString &  mimeType)

Often all you want to know is whether one given MIME type can be decoded by the backend. Use this method in favor of availableMimeTypes() as it can give you a negative answer without having a backend loaded.

See Also
availableMimeTypes();
BackendCapabilities::Notifier * Phonon::BackendCapabilities::notifier ( )

Use this function to get a QObject pointer to connect to one of the Notifier signals.

Returns
a pointer to a QObject.

To connect to the signal do the following:

QObject::connect(BackendCapabilities::notifier(), SIGNAL(capabilitiesChanged()), ...
See Also
Notifier::capabilitiesChanged()
Notifier::availableAudioOutputDevicesChanged()
Notifier::availableAudioCaptureDevicesChanged()
Notifier::availableVideoCaptureDevicesChanged()