QmlDebugging: Revert the names of services
authorAurindam Jana <aurindam.jana@nokia.com>
Wed, 7 Mar 2012 08:34:12 +0000 (09:34 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 7 Mar 2012 12:14:52 +0000 (13:14 +0100)
Revert the names of the services changed in
b855240b782395f94315f43ea3e7e182299fac48 to
maintain BC.

Change-Id: I79826d92fd09c41e0020541b0c7bb77b5b2ecb1f
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
src/qml/debugger/qqmldebugclient.cpp
src/qml/debugger/qqmldebugserver.cpp
src/qml/debugger/qqmldebugservice.cpp
src/qml/debugger/qqmlenginedebug.cpp
src/qml/debugger/qqmlenginedebugservice.cpp
src/qml/debugger/qqmlinspectorservice.cpp
tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp

index 12276b4..fcb0861 100644 (file)
@@ -52,8 +52,8 @@
 QT_BEGIN_NAMESPACE
 
 const int protocolVersion = 1;
-const QString serverId = QLatin1String("QQmlDebugServer");
-const QString clientId = QLatin1String("QQmlDebugClient");
+const QString serverId = QLatin1String("QDeclarativeDebugServer");
+const QString clientId = QLatin1String("QDeclarativeDebugClient");
 
 class QQmlDebugClientPrivate : public QObjectPrivate
 {
index 8d5c597..f27123a 100644 (file)
@@ -60,7 +60,7 @@ QT_BEGIN_NAMESPACE
 
   handshake:
     1. Client sends
-         "QQmlDebugServer" 0 version pluginNames
+         "QDeclarativeDebugServer" 0 version pluginNames
        version: an int representing the highest protocol version the client knows
        pluginNames: plugins available on client side
     2. Server sends
@@ -69,12 +69,12 @@ QT_BEGIN_NAMESPACE
        pluginNames: plugins available on server side. plugins both in the client and server message are enabled.
   client plugin advertisement
     1. Client sends
-         "QQmlDebugServer" 1 pluginNames
+         "QDeclarativeDebugServer" 1 pluginNames
   server plugin advertisement
     1. Server sends
          "QQmlDebugClient" 1 pluginNames pluginVersions
   plugin communication:
-       Everything send with a header different to "QQmlDebugServer" is sent to the appropriate plugin.
+       Everything send with a header different to "QDeclarativeDebugServer" is sent to the appropriate plugin.
   */
 
 const int protocolVersion = 1;
@@ -155,7 +155,7 @@ void QQmlDebugServerPrivate::advertisePlugins()
             pluginNames << service->name();
             pluginVersions << service->version();
         }
-        out << QString(QLatin1String("QQmlDebugClient")) << 1 << pluginNames << pluginVersions;
+        out << QString(QLatin1String("QDeclarativeDebugClient")) << 1 << pluginNames << pluginVersions;
     }
 
     QMetaObject::invokeMethod(q, "_q_sendMessages", Qt::QueuedConnection, Q_ARG(QList<QByteArray>, QList<QByteArray>() << message));
@@ -354,7 +354,7 @@ void QQmlDebugServer::receiveMessage(const QByteArray &message)
     QString name;
 
     in >> name;
-    if (name == QLatin1String("QQmlDebugServer")) {
+    if (name == QLatin1String("QDeclarativeDebugServer")) {
         int op = -1;
         in >> op;
         if (op == 0) {
@@ -373,7 +373,7 @@ void QQmlDebugServer::receiveMessage(const QByteArray &message)
                     pluginVersions << service->version();
                 }
 
-                out << QString(QLatin1String("QQmlDebugClient")) << 0 << protocolVersion << pluginNames << pluginVersions;
+                out << QString(QLatin1String("QDeclarativeDebugClient")) << 0 << protocolVersion << pluginNames << pluginVersions;
             }
             d->connection->send(QList<QByteArray>() << helloAnswer);
 
index 9eb9489..a1cc4fe 100644 (file)
@@ -140,7 +140,7 @@ struct ObjectReferenceHash
 };
 
 }
-Q_GLOBAL_STATIC(ObjectReferenceHash, objectReferenceHash);
+Q_GLOBAL_STATIC(ObjectReferenceHash, objectReferenceHash)
 
 
 /*!
index 597e7ae..65af181 100644 (file)
@@ -96,7 +96,7 @@ public:
 
 QQmlEngineDebugClient::QQmlEngineDebugClient(QQmlDebugConnection *client,
                                                              QQmlEngineDebugPrivate *p)
-    : QQmlDebugClient(QLatin1String("QQmlEngine"), client), priv(p)
+    : QQmlDebugClient(QLatin1String("QDeclarativeEngine"), client), priv(p)
 {
 }
 
index be2e826..114d7ef 100644 (file)
@@ -59,7 +59,7 @@
 
 QT_BEGIN_NAMESPACE
 
-Q_GLOBAL_STATIC(QQmlEngineDebugService, qmlEngineDebugService);
+Q_GLOBAL_STATIC(QQmlEngineDebugService, qmlEngineDebugService)
 
 QQmlEngineDebugService *QQmlEngineDebugService::instance()
 {
@@ -67,7 +67,7 @@ QQmlEngineDebugService *QQmlEngineDebugService::instance()
 }
 
 QQmlEngineDebugService::QQmlEngineDebugService(QObject *parent)
-    : QQmlDebugService(QLatin1String("QQmlEngine"), 1, parent),
+    : QQmlDebugService(QLatin1String("QDeclarativeEngine"), 1, parent),
       m_watch(new QQmlWatcher(this)),
       m_statesDelegate(0)
 {
index 508d12e..c494045 100644 (file)
@@ -58,7 +58,7 @@ QT_BEGIN_NAMESPACE
 Q_GLOBAL_STATIC(QQmlInspectorService, serviceInstance)
 
 QQmlInspectorService::QQmlInspectorService()
-    : QQmlDebugService(QLatin1String("QQmlObserverMode"), 1)
+    : QQmlDebugService(QLatin1String("QDeclarativeObserverMode"), 1)
     , m_currentInspectorPlugin(0)
 {
     registerService();
index 4f74a03..def7040 100644 (file)
@@ -59,7 +59,7 @@ class QQmlInspectorClient : public QQmlDebugClient
 
 public:
     QQmlInspectorClient(QQmlDebugConnection *connection)
-        : QQmlDebugClient(QLatin1String("QQmlObserverMode"), connection)
+        : QQmlDebugClient(QLatin1String("QDeclarativeObserverMode"), connection)
         , m_showAppOnTop(false)
     {
     }