summaryrefslogtreecommitdiffstats
path: root/src/plugins/hardwareintegration/client
diff options
context:
space:
mode:
authorJorgen Lind <jorgen.lind@digia.com>2014-03-10 14:31:55 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-11 15:35:18 +0100
commit043a2893c41bbe0daa8953e9e30dd6957f216d95 (patch)
tree605fef066399c3678a34d6d442a20281d1c3bcd1 /src/plugins/hardwareintegration/client
parent6b173d993542e2aed01b5a97d3e0fb64940ad432 (diff)
Take advantage of the Qt 5 plugin json structure
Also change naming scheme of plugins: buffer integrations doesn't start with "wayland-" but the platform plugins have to start with "wayland-". Also update the README Change-Id: I6dd2103ab287ed569ab06cfb6eb469e3db058831 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/plugins/hardwareintegration/client')
-rw-r--r--src/plugins/hardwareintegration/client/brcm-egl/brcm-egl.json2
-rw-r--r--src/plugins/hardwareintegration/client/brcm-egl/main.cpp18
-rw-r--r--src/plugins/hardwareintegration/client/drm-egl-server/main.cpp18
-rw-r--r--src/plugins/hardwareintegration/client/wayland-egl/main.cpp18
-rw-r--r--src/plugins/hardwareintegration/client/xcomposite-egl/main.cpp18
-rw-r--r--src/plugins/hardwareintegration/client/xcomposite-egl/xcomposite-egl.json2
-rw-r--r--src/plugins/hardwareintegration/client/xcomposite-glx/main.cpp18
-rw-r--r--src/plugins/hardwareintegration/client/xcomposite-glx/xcomposite-glx.json2
8 files changed, 23 insertions, 73 deletions
diff --git a/src/plugins/hardwareintegration/client/brcm-egl/brcm-egl.json b/src/plugins/hardwareintegration/client/brcm-egl/brcm-egl.json
index 48611c6ab..3a659a87b 100644
--- a/src/plugins/hardwareintegration/client/brcm-egl/brcm-egl.json
+++ b/src/plugins/hardwareintegration/client/brcm-egl/brcm-egl.json
@@ -1,3 +1,3 @@
{
- "Keys": [ "wayland-brcm" ]
+ "Keys": [ "brcm" ]
}
diff --git a/src/plugins/hardwareintegration/client/brcm-egl/main.cpp b/src/plugins/hardwareintegration/client/brcm-egl/main.cpp
index f77b41ef0..c023332eb 100644
--- a/src/plugins/hardwareintegration/client/brcm-egl/main.cpp
+++ b/src/plugins/hardwareintegration/client/brcm-egl/main.cpp
@@ -47,26 +47,16 @@ QT_BEGIN_NAMESPACE
class QWaylandBrcmEglClientBufferPlugin : public QWaylandClientBufferIntegrationPlugin
{
Q_OBJECT
- Q_PLUGIN_METADATA(IID "org.qt-project.Qt.WaylandClient.QWaylandClientBufferIntegrationFactoryInterface.5.3" FILE "brcm-egl.json")
+ Q_PLUGIN_METADATA(IID QWaylandClientBufferIntegrationFactoryInterface_iid FILE "brcm-egl.json")
public:
- QStringList keys() const;
- QWaylandClientBufferIntegration *create(const QString&, const QStringList&);
+ QWaylandClientBufferIntegration *create(const QString&, const QStringList&) Q_DECL_OVERRIDE;
};
-QStringList QWaylandBrcmEglClientBufferPlugin::keys() const
-{
- QStringList list;
- list << "wayland-brcm";
- return list;
-}
-
QWaylandClientBufferIntegration *QWaylandBrcmEglClientBufferPlugin::create(const QString& system, const QStringList& paramList)
{
Q_UNUSED(paramList);
- if (system.toLower() == "wayland-brcm")
- return new QWaylandBrcmEglIntegration();
-
- return 0;
+ Q_UNUSED(system);
+ return new QWaylandBrcmEglIntegration();
}
QT_END_NAMESPACE
diff --git a/src/plugins/hardwareintegration/client/drm-egl-server/main.cpp b/src/plugins/hardwareintegration/client/drm-egl-server/main.cpp
index 33b8b4b29..6a3df4431 100644
--- a/src/plugins/hardwareintegration/client/drm-egl-server/main.cpp
+++ b/src/plugins/hardwareintegration/client/drm-egl-server/main.cpp
@@ -47,26 +47,16 @@ QT_BEGIN_NAMESPACE
class DrmEglServerBufferPlugin : public QWaylandServerBufferIntegrationPlugin
{
Q_OBJECT
- Q_PLUGIN_METADATA(IID "org.qt-project.Qt.WaylandClient.QWaylandServerBufferIntegrationFactoryInterface.5.3" FILE "drm-egl-server.json")
+ Q_PLUGIN_METADATA(IID QWaylandServerBufferIntegrationFactoryInterface_iid FILE "drm-egl-server.json")
public:
- QStringList keys() const;
- QWaylandServerBufferIntegration *create(const QString&, const QStringList&);
+ QWaylandServerBufferIntegration *create(const QString&, const QStringList&) Q_DECL_OVERRIDE;
};
-QStringList DrmEglServerBufferPlugin::keys() const
-{
- QStringList list;
- list << "drm-egl-server";
- return list;
-}
-
QWaylandServerBufferIntegration *DrmEglServerBufferPlugin::create(const QString& system, const QStringList& paramList)
{
Q_UNUSED(paramList);
- if (system.toLower() == "drm-egl-server")
- return new DrmEglServerBufferIntegration();
-
- return 0;
+ Q_UNUSED(system);
+ return new DrmEglServerBufferIntegration();
}
QT_END_NAMESPACE
diff --git a/src/plugins/hardwareintegration/client/wayland-egl/main.cpp b/src/plugins/hardwareintegration/client/wayland-egl/main.cpp
index 50e956644..e4cd8c1f0 100644
--- a/src/plugins/hardwareintegration/client/wayland-egl/main.cpp
+++ b/src/plugins/hardwareintegration/client/wayland-egl/main.cpp
@@ -47,26 +47,16 @@ QT_BEGIN_NAMESPACE
class QWaylandEglClientBufferPlugin : public QWaylandClientBufferIntegrationPlugin
{
Q_OBJECT
- Q_PLUGIN_METADATA(IID "org.qt-project.Qt.WaylandClient.QWaylandClientBufferIntegrationFactoryInterface.5.3" FILE "wayland-egl.json")
+ Q_PLUGIN_METADATA(IID QWaylandClientBufferIntegrationFactoryInterface_iid FILE "wayland-egl.json")
public:
- QStringList keys() const;
- QWaylandClientBufferIntegration *create(const QString&, const QStringList&);
+ QWaylandClientBufferIntegration *create(const QString&, const QStringList&) Q_DECL_OVERRIDE;
};
-QStringList QWaylandEglClientBufferPlugin::keys() const
-{
- QStringList list;
- list << "wayland-egl";
- return list;
-}
-
QWaylandClientBufferIntegration *QWaylandEglClientBufferPlugin::create(const QString& system, const QStringList& paramList)
{
Q_UNUSED(paramList);
- if (system.toLower() == "wayland-egl")
- return new QWaylandEglClientBufferIntegration();
-
- return 0;
+ Q_UNUSED(system);
+ return new QWaylandEglClientBufferIntegration();
}
QT_END_NAMESPACE
diff --git a/src/plugins/hardwareintegration/client/xcomposite-egl/main.cpp b/src/plugins/hardwareintegration/client/xcomposite-egl/main.cpp
index 46e3eda4e..4b9835f1d 100644
--- a/src/plugins/hardwareintegration/client/xcomposite-egl/main.cpp
+++ b/src/plugins/hardwareintegration/client/xcomposite-egl/main.cpp
@@ -47,26 +47,16 @@ QT_BEGIN_NAMESPACE
class QWaylandXCompositeEglClientBufferIntegrationPlugin : public QWaylandClientBufferIntegrationPlugin
{
Q_OBJECT
- Q_PLUGIN_METADATA(IID "org.qt-project.Qt.WaylandClient.QWaylandClientBufferIntegrationFactoryInterface.5.3" FILE "xcomposite-egl.json")
+ Q_PLUGIN_METADATA(IID QWaylandClientBufferIntegrationFactoryInterface_iid FILE "xcomposite-egl.json")
public:
- QStringList keys() const;
- QWaylandClientBufferIntegration *create(const QString&, const QStringList&);
+ QWaylandClientBufferIntegration *create(const QString&, const QStringList&) Q_DECL_OVERRIDE;
};
-QStringList QWaylandXCompositeEglClientBufferIntegrationPlugin::keys() const
-{
- QStringList list;
- list << "xcomposite" << "xcomposite-egl";
- return list;
-}
-
QWaylandClientBufferIntegration *QWaylandXCompositeEglClientBufferIntegrationPlugin::create(const QString& system, const QStringList& paramList)
{
Q_UNUSED(paramList);
- if (system.toLower() == "xcomposite" || system.toLower() == "xcomposite-egl")
- return new QWaylandXCompositeEGLClientBufferIntegration();
-
- return 0;
+ Q_UNUSED(system);
+ return new QWaylandXCompositeEGLClientBufferIntegration();
}
QT_END_NAMESPACE
diff --git a/src/plugins/hardwareintegration/client/xcomposite-egl/xcomposite-egl.json b/src/plugins/hardwareintegration/client/xcomposite-egl/xcomposite-egl.json
index 8ccd5b46b..0d119ff85 100644
--- a/src/plugins/hardwareintegration/client/xcomposite-egl/xcomposite-egl.json
+++ b/src/plugins/hardwareintegration/client/xcomposite-egl/xcomposite-egl.json
@@ -1,3 +1,3 @@
{
- "Keys": [ "wayland-xcomposite" ]
+ "Keys": [ "xcomposite-egl" ]
}
diff --git a/src/plugins/hardwareintegration/client/xcomposite-glx/main.cpp b/src/plugins/hardwareintegration/client/xcomposite-glx/main.cpp
index 2d402194e..2c6f0fde8 100644
--- a/src/plugins/hardwareintegration/client/xcomposite-glx/main.cpp
+++ b/src/plugins/hardwareintegration/client/xcomposite-glx/main.cpp
@@ -47,26 +47,16 @@ QT_BEGIN_NAMESPACE
class QWaylandXCompositeGlxClientBufferIntegrationPlugin : public QWaylandClientBufferIntegrationPlugin
{
Q_OBJECT
- Q_PLUGIN_METADATA(IID "org.qt-project.Qt.WaylandClient.QWaylandClientBufferIntegrationFactoryInterface.5.3" FILE "xcomposite-glx.json")
+ Q_PLUGIN_METADATA(IID QWaylandClientBufferIntegrationFactoryInterface_iid FILE "xcomposite-glx.json")
public:
- QStringList keys() const;
- QWaylandClientBufferIntegration *create(const QString&, const QStringList&);
+ QWaylandClientBufferIntegration *create(const QString&, const QStringList&) Q_DECL_OVERRIDE;
};
-QStringList QWaylandXCompositeGlxClientBufferIntegrationPlugin::keys() const
-{
- QStringList list;
- list << "wayland-xcomposite-glx";
- return list;
-}
-
QWaylandClientBufferIntegration *QWaylandXCompositeGlxClientBufferIntegrationPlugin::create(const QString& system, const QStringList& paramList)
{
Q_UNUSED(paramList);
- if (system.toLower() == "wayland-xcomposite-glx")
- return new QWaylandXCompositeGLXIntegration();
-
- return 0;
+ Q_UNUSED(system);
+ return new QWaylandXCompositeGLXIntegration();
}
QT_END_NAMESPACE
diff --git a/src/plugins/hardwareintegration/client/xcomposite-glx/xcomposite-glx.json b/src/plugins/hardwareintegration/client/xcomposite-glx/xcomposite-glx.json
index 0f4a3bf69..e2c4cecd6 100644
--- a/src/plugins/hardwareintegration/client/xcomposite-glx/xcomposite-glx.json
+++ b/src/plugins/hardwareintegration/client/xcomposite-glx/xcomposite-glx.json
@@ -1,3 +1,3 @@
{
- "Keys": [ "wayland-xcomposite-glx" ]
+ "Keys": [ "xcomposite-glx" ]
}