equal
deleted
inserted
replaced
46 #include <qmediaserviceproviderplugin.h> |
46 #include <qmediaserviceproviderplugin.h> |
47 |
47 |
48 QTM_USE_NAMESPACE |
48 QTM_USE_NAMESPACE |
49 |
49 |
50 |
50 |
51 class QGstreamerServicePlugin : public QMediaServiceProviderPlugin, public QMediaServiceSupportedDevicesInterface |
51 class QGstreamerServicePlugin : public QMediaServiceProviderPlugin |
52 { |
52 { |
53 Q_OBJECT |
53 Q_OBJECT |
54 Q_INTERFACES(QtMobility::QMediaServiceSupportedDevicesInterface) |
|
55 public: |
54 public: |
56 QStringList keys() const; |
55 QStringList keys() const; |
57 QMediaService* create(QString const& key); |
56 QMediaService* create(QString const& key); |
58 void release(QMediaService *service); |
57 void release(QMediaService *service); |
59 |
|
60 QList<QByteArray> devices(const QByteArray &service) const; |
|
61 QString deviceDescription(const QByteArray &service, const QByteArray &device); |
|
62 |
|
63 private: |
|
64 void updateDevices() const; |
|
65 |
|
66 mutable QList<QByteArray> m_cameraDevices; |
|
67 mutable QStringList m_cameraDescriptions; |
|
68 }; |
58 }; |
69 |
59 |
70 #endif // QGSTREAMERSERVICEPLUGIN_H |
60 #endif // QGSTREAMERSERVICEPLUGIN_H |