qtmobility/src/multimedia/qmediaserviceproviderplugin.h
changeset 14 6fbed849b4f4
parent 11 06b8e2af4411
child 15 1f895d8a5b2b
equal deleted inserted replaced
11:06b8e2af4411 14:6fbed849b4f4
    54 
    54 
    55 QT_BEGIN_NAMESPACE
    55 QT_BEGIN_NAMESPACE
    56 
    56 
    57 class QMediaService;
    57 class QMediaService;
    58 
    58 
    59 struct Q_MEDIA_EXPORT QMediaServiceProviderFactoryInterface : public QFactoryInterface
    59 struct Q_MULTIMEDIA_EXPORT QMediaServiceProviderFactoryInterface : public QFactoryInterface
    60 {
    60 {
    61     virtual QStringList keys() const = 0;
    61     virtual QStringList keys() const = 0;
    62     virtual QMediaService* create(QString const& key) = 0;
    62     virtual QMediaService* create(QString const& key) = 0;
    63     virtual void release(QMediaService *service) = 0;
    63     virtual void release(QMediaService *service) = 0;
    64 };
    64 };
    66 #define QMediaServiceProviderFactoryInterface_iid \
    66 #define QMediaServiceProviderFactoryInterface_iid \
    67     "com.nokia.Qt.QMediaServiceProviderFactoryInterface/1.0"
    67     "com.nokia.Qt.QMediaServiceProviderFactoryInterface/1.0"
    68 Q_DECLARE_INTERFACE(QMediaServiceProviderFactoryInterface, QMediaServiceProviderFactoryInterface_iid)
    68 Q_DECLARE_INTERFACE(QMediaServiceProviderFactoryInterface, QMediaServiceProviderFactoryInterface_iid)
    69 
    69 
    70 
    70 
    71 struct Q_MEDIA_EXPORT QMediaServiceSupportedFormatsInterface
    71 struct Q_MULTIMEDIA_EXPORT QMediaServiceSupportedFormatsInterface
    72 {
    72 {
    73     virtual ~QMediaServiceSupportedFormatsInterface() {}
    73     virtual ~QMediaServiceSupportedFormatsInterface() {}
    74     virtual QtMediaServices::SupportEstimate hasSupport(const QString &mimeType, const QStringList& codecs) const = 0;
    74     virtual QtMultimedia::SupportEstimate hasSupport(const QString &mimeType, const QStringList& codecs) const = 0;
    75     virtual QStringList supportedMimeTypes() const = 0;
    75     virtual QStringList supportedMimeTypes() const = 0;
    76 };
    76 };
    77 
    77 
    78 #define QMediaServiceSupportedFormatsInterface_iid \
    78 #define QMediaServiceSupportedFormatsInterface_iid \
    79     "com.nokia.Qt.QMediaServiceSupportedFormatsInterface/1.0"
    79     "com.nokia.Qt.QMediaServiceSupportedFormatsInterface/1.0"
    80 Q_DECLARE_INTERFACE(QMediaServiceSupportedFormatsInterface, QMediaServiceSupportedFormatsInterface_iid)
    80 Q_DECLARE_INTERFACE(QMediaServiceSupportedFormatsInterface, QMediaServiceSupportedFormatsInterface_iid)
    81 
    81 
    82 
    82 
    83 struct Q_MEDIA_EXPORT QMediaServiceSupportedDevicesInterface
    83 struct Q_MULTIMEDIA_EXPORT QMediaServiceSupportedDevicesInterface
    84 {
    84 {
    85     virtual ~QMediaServiceSupportedDevicesInterface() {}
    85     virtual ~QMediaServiceSupportedDevicesInterface() {}
    86     virtual QList<QByteArray> devices(const QByteArray &service) const = 0;
    86     virtual QList<QByteArray> devices(const QByteArray &service) const = 0;
    87     virtual QString deviceDescription(const QByteArray &service, const QByteArray &device) = 0;
    87     virtual QString deviceDescription(const QByteArray &service, const QByteArray &device) = 0;
    88 };
    88 };
    91     "com.nokia.Qt.QMediaServiceSupportedDevicesInterface/1.0"
    91     "com.nokia.Qt.QMediaServiceSupportedDevicesInterface/1.0"
    92 Q_DECLARE_INTERFACE(QMediaServiceSupportedDevicesInterface, QMediaServiceSupportedDevicesInterface_iid)
    92 Q_DECLARE_INTERFACE(QMediaServiceSupportedDevicesInterface, QMediaServiceSupportedDevicesInterface_iid)
    93 
    93 
    94 
    94 
    95 
    95 
    96 struct Q_MEDIA_EXPORT QMediaServiceFeaturesInterface
    96 struct Q_MULTIMEDIA_EXPORT QMediaServiceFeaturesInterface
    97 {
    97 {
    98     virtual ~QMediaServiceFeaturesInterface() {}
    98     virtual ~QMediaServiceFeaturesInterface() {}
    99     virtual QMediaServiceProviderHint::Features supportedFeatures(const QByteArray &service) const = 0;
    99     virtual QMediaServiceProviderHint::Features supportedFeatures(const QByteArray &service) const = 0;
   100 };
   100 };
   101 
   101 
   102 #define QMediaServiceFeaturesInterface_iid \
   102 #define QMediaServiceFeaturesInterface_iid \
   103     "com.nokia.Qt.QMediaServiceFeaturesInterface/1.0"
   103     "com.nokia.Qt.QMediaServiceFeaturesInterface/1.0"
   104 Q_DECLARE_INTERFACE(QMediaServiceFeaturesInterface, QMediaServiceFeaturesInterface_iid)
   104 Q_DECLARE_INTERFACE(QMediaServiceFeaturesInterface, QMediaServiceFeaturesInterface_iid)
   105 
   105 
   106 
   106 
   107 class Q_MEDIA_EXPORT QMediaServiceProviderPlugin : public QObject, public QMediaServiceProviderFactoryInterface
   107 class Q_MULTIMEDIA_EXPORT QMediaServiceProviderPlugin : public QObject, public QMediaServiceProviderFactoryInterface
   108 {
   108 {
   109     Q_OBJECT
   109     Q_OBJECT
   110     Q_INTERFACES(QMediaServiceProviderFactoryInterface:QFactoryInterface)
   110     Q_INTERFACES(QMediaServiceProviderFactoryInterface:QFactoryInterface)
   111 
   111 
   112 public:
   112 public: