summaryrefslogtreecommitdiffstats
path: root/src/plugins/qt7/qt7serviceplugin.mm
diff options
context:
space:
mode:
authorJonas Rabbe <jonas.rabbe@nokia.com>2012-03-14 13:02:32 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-20 23:39:45 +0100
commita8ba6e3c7f181e387eb53b122d58c433b5784319 (patch)
tree8a090349fa2698f879085380e6daa625ad979bdf /src/plugins/qt7/qt7serviceplugin.mm
parent61c09d1614c560de9514ac0fd3344bf0280fca33 (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/plugins/qt7/qt7serviceplugin.mm')
-rw-r--r--src/plugins/qt7/qt7serviceplugin.mm11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/plugins/qt7/qt7serviceplugin.mm b/src/plugins/qt7/qt7serviceplugin.mm
index 0cc0a584d..a1bbc79a8 100644
--- a/src/plugins/qt7/qt7serviceplugin.mm
+++ b/src/plugins/qt7/qt7serviceplugin.mm
@@ -59,15 +59,6 @@ QT7ServicePlugin::QT7ServicePlugin()
buildSupportedTypes();
}
-QStringList QT7ServicePlugin::keys() const
-{
- return QStringList()
-#ifdef QMEDIA_QT7_PLAYER
- << QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER)
-#endif
- ;
-}
-
QMediaService* QT7ServicePlugin::create(QString const& key)
{
#ifdef QT_DEBUG_QT7
@@ -124,6 +115,4 @@ void QT7ServicePlugin::buildSupportedTypes()
}
}
-Q_EXPORT_PLUGIN2(qtmedia_qt7engine, QT7ServicePlugin);
-
QT_END_NAMESPACE