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/qtmultimediaquicktools_headers/qsgvideonode_p.h | |
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/qtmultimediaquicktools_headers/qsgvideonode_p.h')
-rw-r--r-- | src/multimedia/qtmultimediaquicktools_headers/qsgvideonode_p.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/multimedia/qtmultimediaquicktools_headers/qsgvideonode_p.h b/src/multimedia/qtmultimediaquicktools_headers/qsgvideonode_p.h index f82a337ed..6bdfc2b91 100644 --- a/src/multimedia/qtmultimediaquicktools_headers/qsgvideonode_p.h +++ b/src/multimedia/qtmultimediaquicktools_headers/qsgvideonode_p.h @@ -48,7 +48,6 @@ #include <QtMultimedia/qvideoframe.h> #include <QtMultimedia/qvideosurfaceformat.h> #include <QtGui/qopenglfunctions.h> -#include <QtCore/qfactoryinterface.h> QT_BEGIN_HEADER @@ -74,14 +73,24 @@ private: int m_orientation; }; -class QSGVideoNodeFactory : public QFactoryInterface { +class QSGVideoNodeFactoryInterface +{ public: virtual QList<QVideoFrame::PixelFormat> supportedPixelFormats(QAbstractVideoBuffer::HandleType handleType) const = 0; virtual QSGVideoNode *createNode(const QVideoSurfaceFormat &format) = 0; }; -#define QSGVideoNodeFactory_iid "com.nokia.Qt.QSGVideoNodeFactory" -Q_DECLARE_INTERFACE(QSGVideoNodeFactory, QSGVideoNodeFactory_iid) +#define QSGVideoNodeFactoryInterface_iid "com.nokia.Qt.QSGVideoNodeFactoryInterface" +Q_DECLARE_INTERFACE(QSGVideoNodeFactoryInterface, QSGVideoNodeFactoryInterface_iid) + +class QSGVideoNodeFactoryPlugin : public QObject, public QSGVideoNodeFactoryInterface +{ + Q_OBJECT + Q_INTERFACES(QSGVideoNodeFactoryInterface) +public: + virtual QList<QVideoFrame::PixelFormat> supportedPixelFormats(QAbstractVideoBuffer::HandleType handleType) const = 0; + virtual QSGVideoNode *createNode(const QVideoSurfaceFormat &format) = 0; +}; QT_END_NAMESPACE |