Home · All Classes · All Functions ·

QMediaServiceProvider Class Reference

The QMediaServiceProvider class provides an abstract allocator for media services. More...

    #include <QMediaServiceProvider>

This class is under development and is subject to change.

Inherits QObject.


Public Functions

virtual QString deviceDescription ( const QByteArray & serviceType, const QByteArray & device )
virtual QList<QByteArray> devices ( const QByteArray & service ) const
virtual QtMultimediaKit::SupportEstimate hasSupport ( const QByteArray & serviceType, const QString & mimeType, const QStringList & codecs, int flags = 0 ) const
virtual void releaseService ( QMediaService * service ) = 0
virtual QMediaService * requestService ( const QByteArray & type, const QMediaServiceProviderHint & hint = QMediaServiceProviderHint() ) = 0
virtual QStringList supportedMimeTypes ( const QByteArray & serviceType, int flags = 0 ) const

Static Public Members

QMediaServiceProvider * defaultServiceProvider ()

Additional Inherited Members


Detailed Description

The QMediaServiceProvider class provides an abstract allocator for media services.


Member Function Documentation

QMediaServiceProvider * QMediaServiceProvider::defaultServiceProvider ()   [static]

Returns a default provider of media services.

QString QMediaServiceProvider::deviceDescription ( const QByteArray & serviceType, const QByteArray & device )   [virtual]

Returns the description of device related to serviceType, suitable for use by an application for display.

QList<QByteArray> QMediaServiceProvider::devices ( const QByteArray & service ) const   [virtual]

Returns the list of devices related to service type.

QtMultimediaKit::SupportEstimate QMediaServiceProvider::hasSupport ( const QByteArray & serviceType, const QString & mimeType, const QStringList & codecs, int flags = 0 ) const   [virtual]

Returns how confident a media service provider is that is can provide a serviceType service that is able to play media of a specific mimeType that is encoded using the listed codecs while adhering to constraints identified in flags.

void QMediaServiceProvider::releaseService ( QMediaService * service )   [pure virtual]

Releases a media service requested with requestService().

QMediaService * QMediaServiceProvider::requestService ( const QByteArray & type, const QMediaServiceProviderHint & hint = QMediaServiceProviderHint() )   [pure virtual]

Requests an instance of a type service which best matches the given hint.

Returns a pointer to the requested service, or a null pointer if there is no suitable service.

The returned service must be released with releaseService when it is finished with.

QStringList QMediaServiceProvider::supportedMimeTypes ( const QByteArray & serviceType, int flags = 0 ) const   [virtual]

Returns a list of MIME types supported by the service provider for the specified serviceType.

The resultant list is restricted to MIME types which can be supported given the constraints in flags.


Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.0.2