qtmobility/src/multimedia/qmediaserviceprovider.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 5 453da2cfceef
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    43 #define QMEDIASERVICEPROVIDER_H
    43 #define QMEDIASERVICEPROVIDER_H
    44 
    44 
    45 #include <QtCore/qobject.h>
    45 #include <QtCore/qobject.h>
    46 #include <QtCore/qshareddata.h>
    46 #include <QtCore/qshareddata.h>
    47 #include <qmobilityglobal.h>
    47 #include <qmobilityglobal.h>
    48 #include <qtmedianamespace.h>
    48 #include "qtmedianamespace.h"
    49 
    49 
    50 QTM_BEGIN_NAMESPACE
    50 QTM_BEGIN_NAMESPACE
    51 
    51 
    52 class QMediaService;
    52 class QMediaService;
    53 
    53 
    57 public:
    57 public:
    58     enum Type { Null, ContentType, Device, SupportedFeatures };
    58     enum Type { Null, ContentType, Device, SupportedFeatures };
    59 
    59 
    60     enum Feature {
    60     enum Feature {
    61         LowLatencyPlayback = 0x01,
    61         LowLatencyPlayback = 0x01,
    62         RecordingSupport = 0x02
    62         RecordingSupport = 0x02,
       
    63         StreamPlayback = 0x04
    63     };
    64     };
    64     Q_DECLARE_FLAGS(Features, Feature)
    65     Q_DECLARE_FLAGS(Features, Feature)
    65 
    66 
    66     QMediaServiceProviderHint();
    67     QMediaServiceProviderHint();
    67     QMediaServiceProviderHint(const QString &mimeType, const QStringList& codecs);
    68     QMediaServiceProviderHint(const QString &mimeType, const QStringList& codecs);
   108 
   109 
   109     virtual QList<QByteArray> devices(const QByteArray &serviceType) const;
   110     virtual QList<QByteArray> devices(const QByteArray &serviceType) const;
   110     virtual QString deviceDescription(const QByteArray &serviceType, const QByteArray &device);
   111     virtual QString deviceDescription(const QByteArray &serviceType, const QByteArray &device);
   111 
   112 
   112     static QMediaServiceProvider* defaultServiceProvider();
   113     static QMediaServiceProvider* defaultServiceProvider();
       
   114 
       
   115 #ifdef QT_BUILD_INTERNAL
       
   116     static void setDefaultServiceProvider(QMediaServiceProvider *provider);
       
   117 #endif
   113 };
   118 };
   114 
   119 
   115 /*!
   120 /*!
   116     Service with support for media playback
   121     Service with support for media playback
   117     Required Controls: QMediaPlayerControl
   122     Required Controls: QMediaPlayerControl