diff options
author | Jonas Rabbe <jonas.rabbe@nokia.com> | 2012-03-14 13:02:32 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-20 23:39:45 +0100 |
commit | a8ba6e3c7f181e387eb53b122d58c433b5784319 (patch) | |
tree | 8a090349fa2698f879085380e6daa625ad979bdf /src/multimedia/gsttools_headers | |
parent | 61c09d1614c560de9514ac0fd3344bf0280fca33 (diff) |
Updated plugins to use new plugin architecture
Changed QMediaPluginLoader to use QFactoryLoader instead of QPluginLoader
and used metadata to get keys.
Removed QAudioPluginLoader and changed audio classes to use instead use
QMediaPluginLoader.
The plugins must include the Q_PLUGIN_METADATA macro, and no longer use
the Q_PLUGIN_EXPORT/Q_PLUGIN_EXPORT2 macros.
A json file has been added for each plugin which can contain metadata
which is available to the plugin loader before the plugin is actually
loaded, and is used to read the keys for the plugin, e.g. supported
services.
QFactoryInterface will be deprecated and has been removed from all
plugins.
Change-Id: I035b82f9c9c65717bebf704d560ea8f891df21da
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Diffstat (limited to 'src/multimedia/gsttools_headers')
-rw-r--r-- | src/multimedia/gsttools_headers/qgstbufferpoolinterface_p.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/multimedia/gsttools_headers/qgstbufferpoolinterface_p.h b/src/multimedia/gsttools_headers/qgstbufferpoolinterface_p.h index 3e2430e56..7bb906aa5 100644 --- a/src/multimedia/gsttools_headers/qgstbufferpoolinterface_p.h +++ b/src/multimedia/gsttools_headers/qgstbufferpoolinterface_p.h @@ -57,7 +57,6 @@ #include <qvideosurfaceformat.h> #include <QtCore/qobject.h> #include <QtCore/qplugin.h> -#include <QtCore/qfactoryinterface.h> #include <gst/gst.h> @@ -68,7 +67,7 @@ const QLatin1String QGstBufferPoolPluginKey("bufferpool"); /*! Abstract interface for video buffers allocation. */ -class QGstBufferPoolInterface : public QFactoryInterface +class QGstBufferPoolInterface { public: virtual ~QGstBufferPoolInterface() {} @@ -96,7 +95,7 @@ Q_DECLARE_INTERFACE(QGstBufferPoolInterface, QGstBufferPoolInterface_iid) class QGstBufferPoolPlugin : public QObject, public QGstBufferPoolInterface { Q_OBJECT - Q_INTERFACES(QGstBufferPoolInterface:QFactoryInterface) + Q_INTERFACES(QGstBufferPoolInterface) public: explicit QGstBufferPoolPlugin(QObject *parent = 0); virtual ~QGstBufferPoolPlugin() {} @@ -116,8 +115,6 @@ public: This method is called from gstreamer video sink thread. */ virtual QAbstractVideoBuffer *prepareVideoBuffer(GstBuffer *buffer, int bytesPerLine) = 0; - - virtual QStringList keys() const = 0; }; QT_END_NAMESPACE |