MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QMediaServiceProvider Class Reference

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

 #include <QMediaServiceProvider>

Inherits: QObject.

This class was introduced in Qt Mobility 1.0.

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
  • 29 public functions inherited from QObject

Static Public Members

QMediaServiceProvider * defaultServiceProvider ()
  • 4 static public members inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 signal inherited from QObject
  • 1 public variable inherited from QObject
  • 7 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

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.

This function was introduced in Qt Mobility 1.0.

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

Returns the list of devices related to service type.

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

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

Releases a media service requested with requestService().

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.