summaryrefslogtreecommitdiffstats
path: root/src/client/shellintegration
diff options
context:
space:
mode:
authorGiulio Camuffo <giulio.camuffo@jollamobile.com>2015-01-29 14:35:44 +0200
committerGiulio Camuffo <giulio.camuffo@jollamobile.com>2015-01-29 12:53:04 +0000
commite6255beec9114afd1fad9e7d62ebec433a627d54 (patch)
treee03655b01f480e4e82686ad02318f241a21f0002 /src/client/shellintegration
parent1db1fa1619e718eebdc88899df6c0a8c6d2309b9 (diff)
Namespace the platform plugins
There currently is a QWaylandInputDevice class both in the wayland QPA plugin and in the QtCompositor API. This causes the qwindow-compositor example to crash when running nested in a wayland session due to a mismatch between the two classes. By namespacing all the plugin code we make sure that name clashes will not happen anymore. Change-Id: I17497cff697599200bea68bf01dfde474526390f Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Diffstat (limited to 'src/client/shellintegration')
-rw-r--r--src/client/shellintegration/qwaylandshellintegration_p.h4
-rw-r--r--src/client/shellintegration/qwaylandshellintegrationfactory.cpp4
-rw-r--r--src/client/shellintegration/qwaylandshellintegrationfactory_p.h4
-rw-r--r--src/client/shellintegration/qwaylandshellintegrationplugin.cpp4
-rw-r--r--src/client/shellintegration/qwaylandshellintegrationplugin_p.h4
5 files changed, 20 insertions, 0 deletions
diff --git a/src/client/shellintegration/qwaylandshellintegration_p.h b/src/client/shellintegration/qwaylandshellintegration_p.h
index 45a78199c..31fa98edb 100644
--- a/src/client/shellintegration/qwaylandshellintegration_p.h
+++ b/src/client/shellintegration/qwaylandshellintegration_p.h
@@ -47,6 +47,8 @@
QT_BEGIN_NAMESPACE
+namespace QtWaylandClient {
+
class QWaylandWindow;
class QWaylandDisplay;
class QWaylandShellSurface;
@@ -61,6 +63,8 @@ public:
virtual QWaylandShellSurface *createShellSurface(QWaylandWindow *window) = 0;
};
+}
+
QT_END_NAMESPACE
#endif // QWAYLANDSHELLINTEGRATION_H
diff --git a/src/client/shellintegration/qwaylandshellintegrationfactory.cpp b/src/client/shellintegration/qwaylandshellintegrationfactory.cpp
index f780409e1..4af65d4c0 100644
--- a/src/client/shellintegration/qwaylandshellintegrationfactory.cpp
+++ b/src/client/shellintegration/qwaylandshellintegrationfactory.cpp
@@ -48,6 +48,8 @@
QT_BEGIN_NAMESPACE
+namespace QtWaylandClient {
+
#ifndef QT_NO_LIBRARY
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
(QWaylandShellIntegrationFactoryInterface_iid, QLatin1String("/wayland-shell-integration"), Qt::CaseInsensitive))
@@ -93,4 +95,6 @@ QWaylandShellIntegration *QWaylandShellIntegrationFactory::create(const QString
return Q_NULLPTR;
}
+}
+
QT_END_NAMESPACE
diff --git a/src/client/shellintegration/qwaylandshellintegrationfactory_p.h b/src/client/shellintegration/qwaylandshellintegrationfactory_p.h
index 415067ef8..3b7fa357d 100644
--- a/src/client/shellintegration/qwaylandshellintegrationfactory_p.h
+++ b/src/client/shellintegration/qwaylandshellintegrationfactory_p.h
@@ -47,6 +47,8 @@
QT_BEGIN_NAMESPACE
+namespace QtWaylandClient {
+
class QWaylandShellIntegration;
class Q_WAYLAND_CLIENT_EXPORT QWaylandShellIntegrationFactory
@@ -56,6 +58,8 @@ public:
static QWaylandShellIntegration *create(const QString &name, const QStringList &args, const QString &pluginPath = QString());
};
+}
+
QT_END_NAMESPACE
#endif // QWAYLANDSHELLINTEGRATIONFACTORY_H
diff --git a/src/client/shellintegration/qwaylandshellintegrationplugin.cpp b/src/client/shellintegration/qwaylandshellintegrationplugin.cpp
index 05b5e91ad..bbca1558d 100644
--- a/src/client/shellintegration/qwaylandshellintegrationplugin.cpp
+++ b/src/client/shellintegration/qwaylandshellintegrationplugin.cpp
@@ -43,6 +43,8 @@
QT_BEGIN_NAMESPACE
+namespace QtWaylandClient {
+
QWaylandShellIntegrationPlugin::QWaylandShellIntegrationPlugin(QObject *parent)
: QObject(parent)
{
@@ -52,4 +54,6 @@ QWaylandShellIntegrationPlugin::~QWaylandShellIntegrationPlugin()
{
}
+}
+
QT_END_NAMESPACE
diff --git a/src/client/shellintegration/qwaylandshellintegrationplugin_p.h b/src/client/shellintegration/qwaylandshellintegrationplugin_p.h
index 7d01fb4e5..07438e7a6 100644
--- a/src/client/shellintegration/qwaylandshellintegrationplugin_p.h
+++ b/src/client/shellintegration/qwaylandshellintegrationplugin_p.h
@@ -50,6 +50,8 @@
QT_BEGIN_NAMESPACE
+namespace QtWaylandClient {
+
class QWaylandShellIntegration;
#define QWaylandShellIntegrationFactoryInterface_iid "org.qt-project.Qt.WaylandClient.QWaylandShellIntegrationFactoryInterface.5.3"
@@ -64,6 +66,8 @@ public:
virtual QWaylandShellIntegration *create(const QString &key, const QStringList &paramList) = 0;
};
+}
+
QT_END_NAMESPACE
#endif // QWAYLANDSHELLINTEGRATIONPLUGIN_H