qtmobility/src/multimedia/qmediaplayer.cpp
changeset 5 453da2cfceef
parent 4 90517678cc4f
child 11 06b8e2af4411
equal deleted inserted replaced
4:90517678cc4f 5:453da2cfceef
    55 #include "qmediaplaylist.h"
    55 #include "qmediaplaylist.h"
    56 #include "qmediaplaylistcontrol.h"
    56 #include "qmediaplaylistcontrol.h"
    57 #include "qvideowidget.h"
    57 #include "qvideowidget.h"
    58 #include "qgraphicsvideoitem.h"
    58 #include "qgraphicsvideoitem.h"
    59 
    59 
    60 QTM_BEGIN_NAMESPACE
    60 QT_BEGIN_NAMESPACE
    61 
    61 
    62 /*!
    62 /*!
    63     \class QMediaPlayer
    63     \class QMediaPlayer
    64     \brief The QMediaPlayer class allows the playing of a media source.
    64     \brief The QMediaPlayer class allows the playing of a media source.
    65     \ingroup multimedia
    65     \ingroup multimedia
   647     Returns the level of support a media player has for a \a mimeType and a set of \a codecs.
   647     Returns the level of support a media player has for a \a mimeType and a set of \a codecs.
   648 
   648 
   649     The \a flags argument allows additional requirements such as performance indicators to be
   649     The \a flags argument allows additional requirements such as performance indicators to be
   650     specified.
   650     specified.
   651 */
   651 */
   652 QtMedia::SupportEstimate QMediaPlayer::hasSupport(const QString &mimeType,
   652 QtMediaServices::SupportEstimate QMediaPlayer::hasSupport(const QString &mimeType,
   653                                                const QStringList& codecs,
   653                                                const QStringList& codecs,
   654                                                Flags flags)
   654                                                Flags flags)
   655 {
   655 {
   656     return QMediaServiceProvider::defaultServiceProvider()->hasSupport(QByteArray(Q_MEDIASERVICE_MEDIAPLAYER),
   656     return QMediaServiceProvider::defaultServiceProvider()->hasSupport(QByteArray(Q_MEDIASERVICE_MEDIAPLAYER),
   657                                                                     mimeType,
   657                                                                     mimeType,
   955             If passed to QMediaPlayer constructor, the service supporting
   955             If passed to QMediaPlayer constructor, the service supporting
   956             streams playback will be choosen.
   956             streams playback will be choosen.
   957 */
   957 */
   958 
   958 
   959 #include "moc_qmediaplayer.cpp"
   959 #include "moc_qmediaplayer.cpp"
   960 QTM_END_NAMESPACE
   960 QT_END_NAMESPACE
   961 
   961