summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-07-13 05:35:17 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-07-13 05:35:17 (GMT)
commita3cfd5cd28c1450796f23a847afde0510171dd23 (patch)
tree14294f0a4639e136ebc32ed65f14a286e01c06e9 /src/declarative
parent27bc784715b3960a0d38157dd2b4f8b4913ca071 (diff)
downloadQt-a3cfd5cd28c1450796f23a847afde0510171dd23.zip
Qt-a3cfd5cd28c1450796f23a847afde0510171dd23.tar.gz
Qt-a3cfd5cd28c1450796f23a847afde0510171dd23.tar.bz2
Rename classes
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/debugger/qmldebug.cpp14
-rw-r--r--src/declarative/debugger/qmldebug.h4
-rw-r--r--src/declarative/debugger/qmldebugclient.cpp66
-rw-r--r--src/declarative/debugger/qmldebugclient.h28
4 files changed, 56 insertions, 56 deletions
diff --git a/src/declarative/debugger/qmldebug.cpp b/src/declarative/debugger/qmldebug.cpp
index 1808bba..8309ec6 100644
--- a/src/declarative/debugger/qmldebug.cpp
+++ b/src/declarative/debugger/qmldebug.cpp
@@ -3,10 +3,10 @@
#include <private/qobject_p.h>
#include <private/qmlenginedebug_p.h>
-class QmlEngineDebugClient : public QmlDebugClientPlugin
+class QmlEngineDebugClient : public QmlDebugClient
{
public:
- QmlEngineDebugClient(QmlDebugClient *client, QmlEngineDebugPrivate *p);
+ QmlEngineDebugClient(QmlDebugConnection *client, QmlEngineDebugPrivate *p);
protected:
virtual void messageReceived(const QByteArray &);
@@ -19,7 +19,7 @@ class QmlEngineDebugPrivate : public QObjectPrivate
{
Q_DECLARE_PUBLIC(QmlEngineDebug)
public:
- QmlEngineDebugPrivate(QmlDebugClient *);
+ QmlEngineDebugPrivate(QmlDebugConnection *);
void message(const QByteArray &);
@@ -38,9 +38,9 @@ public:
QHash<int, QmlDebugObjectQuery *> objectQuery;
};
-QmlEngineDebugClient::QmlEngineDebugClient(QmlDebugClient *client,
+QmlEngineDebugClient::QmlEngineDebugClient(QmlDebugConnection *client,
QmlEngineDebugPrivate *p)
-: QmlDebugClientPlugin(QLatin1String("QmlEngine"), client), priv(p)
+: QmlDebugClient(QLatin1String("QmlEngine"), client), priv(p)
{
setEnabled(true);
}
@@ -50,7 +50,7 @@ void QmlEngineDebugClient::messageReceived(const QByteArray &data)
priv->message(data);
}
-QmlEngineDebugPrivate::QmlEngineDebugPrivate(QmlDebugClient *c)
+QmlEngineDebugPrivate::QmlEngineDebugPrivate(QmlDebugConnection *c)
: client(c, this), nextId(0)
{
}
@@ -206,7 +206,7 @@ void QmlEngineDebugPrivate::message(const QByteArray &data)
}
}
-QmlEngineDebug::QmlEngineDebug(QmlDebugClient *client, QObject *parent)
+QmlEngineDebug::QmlEngineDebug(QmlDebugConnection *client, QObject *parent)
: QObject(*(new QmlEngineDebugPrivate(client)), parent)
{
}
diff --git a/src/declarative/debugger/qmldebug.h b/src/declarative/debugger/qmldebug.h
index 52a5400..11e6b3e 100644
--- a/src/declarative/debugger/qmldebug.h
+++ b/src/declarative/debugger/qmldebug.h
@@ -5,7 +5,7 @@
#include <QtCore/qurl.h>
#include <QtCore/qvariant.h>
-class QmlDebugClient;
+class QmlDebugConnection;
class QmlDebugWatch;
class QmlDebugEnginesQuery;
class QmlDebugRootContextQuery;
@@ -20,7 +20,7 @@ class Q_DECLARATIVE_EXPORT QmlEngineDebug : public QObject
{
Q_OBJECT
public:
- QmlEngineDebug(QmlDebugClient *, QObject * = 0);
+ QmlEngineDebug(QmlDebugConnection *, QObject * = 0);
QmlDebugWatch *addWatch(const QmlDebugPropertyReference &,
QObject *parent = 0);
diff --git a/src/declarative/debugger/qmldebugclient.cpp b/src/declarative/debugger/qmldebugclient.cpp
index 562d87d..7c5c37b 100644
--- a/src/declarative/debugger/qmldebugclient.cpp
+++ b/src/declarative/debugger/qmldebugclient.cpp
@@ -47,22 +47,22 @@
QT_BEGIN_NAMESPACE
-class QmlDebugClientPrivate : public QObject
+class QmlDebugConnectionPrivate : public QObject
{
Q_OBJECT
public:
- QmlDebugClientPrivate(QmlDebugClient *c);
- QmlDebugClient *q;
+ QmlDebugConnectionPrivate(QmlDebugConnection *c);
+ QmlDebugConnection *q;
QPacketProtocol *protocol;
QStringList enabled;
- QHash<QString, QmlDebugClientPlugin *> plugins;
+ QHash<QString, QmlDebugClient *> plugins;
public slots:
void connected();
void readyRead();
};
-QmlDebugClientPrivate::QmlDebugClientPrivate(QmlDebugClient *c)
+QmlDebugConnectionPrivate::QmlDebugConnectionPrivate(QmlDebugConnection *c)
: QObject(c), q(c), protocol(0)
{
protocol = new QPacketProtocol(q, this);
@@ -70,59 +70,59 @@ QmlDebugClientPrivate::QmlDebugClientPrivate(QmlDebugClient *c)
QObject::connect(protocol, SIGNAL(readyRead()), this, SLOT(readyRead()));
}
-void QmlDebugClientPrivate::connected()
+void QmlDebugConnectionPrivate::connected()
{
QPacket pack;
pack << QString(QLatin1String("QmlDebugServer")) << enabled;
protocol->send(pack);
}
-void QmlDebugClientPrivate::readyRead()
+void QmlDebugConnectionPrivate::readyRead()
{
QPacket pack = protocol->read();
QString name; QByteArray message;
pack >> name >> message;
- QHash<QString, QmlDebugClientPlugin *>::Iterator iter =
+ QHash<QString, QmlDebugClient *>::Iterator iter =
plugins.find(name);
if (iter == plugins.end()) {
- qWarning() << "QmlDebugClient: Message received for missing plugin" << name;
+ qWarning() << "QmlDebugConnection: Message received for missing plugin" << name;
} else {
(*iter)->messageReceived(message);
}
}
-QmlDebugClient::QmlDebugClient(QObject *parent)
-: QTcpSocket(parent), d(new QmlDebugClientPrivate(this))
+QmlDebugConnection::QmlDebugConnection(QObject *parent)
+: QTcpSocket(parent), d(new QmlDebugConnectionPrivate(this))
{
}
-bool QmlDebugClient::isConnected() const
+bool QmlDebugConnection::isConnected() const
{
return state() == ConnectedState;
}
-class QmlDebugClientPluginPrivate : public QObjectPrivate
+class QmlDebugClientPrivate : public QObjectPrivate
{
- Q_DECLARE_PUBLIC(QmlDebugClientPlugin);
+ Q_DECLARE_PUBLIC(QmlDebugClient);
public:
- QmlDebugClientPluginPrivate();
+ QmlDebugClientPrivate();
QString name;
- QmlDebugClient *client;
+ QmlDebugConnection *client;
bool enabled;
};
-QmlDebugClientPluginPrivate::QmlDebugClientPluginPrivate()
+QmlDebugClientPrivate::QmlDebugClientPrivate()
: client(0), enabled(false)
{
}
-QmlDebugClientPlugin::QmlDebugClientPlugin(const QString &name,
- QmlDebugClient *parent)
-: QObject(*(new QmlDebugClientPluginPrivate), parent)
+QmlDebugClient::QmlDebugClient(const QString &name,
+ QmlDebugConnection *parent)
+: QObject(*(new QmlDebugClientPrivate), parent)
{
- Q_D(QmlDebugClientPlugin);
+ Q_D(QmlDebugClient);
d->name = name;
d->client = parent;
@@ -130,28 +130,28 @@ QmlDebugClientPlugin::QmlDebugClientPlugin(const QString &name,
return;
if (d->client->d->plugins.contains(name)) {
- qWarning() << "QmlDebugClientPlugin: Conflicting plugin name" << name;
+ qWarning() << "QmlDebugClient: Conflicting plugin name" << name;
d->client = 0;
} else {
d->client->d->plugins.insert(name, this);
}
}
-QString QmlDebugClientPlugin::name() const
+QString QmlDebugClient::name() const
{
- Q_D(const QmlDebugClientPlugin);
+ Q_D(const QmlDebugClient);
return d->name;
}
-bool QmlDebugClientPlugin::isEnabled() const
+bool QmlDebugClient::isEnabled() const
{
- Q_D(const QmlDebugClientPlugin);
+ Q_D(const QmlDebugClient);
return d->enabled;
}
-void QmlDebugClientPlugin::setEnabled(bool e)
+void QmlDebugClient::setEnabled(bool e)
{
- Q_D(QmlDebugClientPlugin);
+ Q_D(QmlDebugClient);
if (e == d->enabled)
return;
@@ -174,16 +174,16 @@ void QmlDebugClientPlugin::setEnabled(bool e)
}
}
-bool QmlDebugClientPlugin::isConnected() const
+bool QmlDebugClient::isConnected() const
{
- Q_D(const QmlDebugClientPlugin);
+ Q_D(const QmlDebugClient);
return d->client->isConnected();
}
-void QmlDebugClientPlugin::sendMessage(const QByteArray &message)
+void QmlDebugClient::sendMessage(const QByteArray &message)
{
- Q_D(QmlDebugClientPlugin);
+ Q_D(QmlDebugClient);
if (!d->client || !d->client->isConnected())
return;
@@ -193,7 +193,7 @@ void QmlDebugClientPlugin::sendMessage(const QByteArray &message)
d->client->d->protocol->send(pack);
}
-void QmlDebugClientPlugin::messageReceived(const QByteArray &)
+void QmlDebugClient::messageReceived(const QByteArray &)
{
}
diff --git a/src/declarative/debugger/qmldebugclient.h b/src/declarative/debugger/qmldebugclient.h
index 194e913..6397670 100644
--- a/src/declarative/debugger/qmldebugclient.h
+++ b/src/declarative/debugger/qmldebugclient.h
@@ -50,30 +50,30 @@ QT_BEGIN_NAMESPACE
QT_MODULE(Declarative)
-class QmlDebugClientPrivate;
-class Q_DECLARATIVE_EXPORT QmlDebugClient : public QTcpSocket
+class QmlDebugConnectionPrivate;
+class Q_DECLARATIVE_EXPORT QmlDebugConnection : public QTcpSocket
{
Q_OBJECT
- Q_DISABLE_COPY(QmlDebugClient)
+ Q_DISABLE_COPY(QmlDebugConnection)
public:
- QmlDebugClient(QObject * = 0);
+ QmlDebugConnection(QObject * = 0);
bool isConnected() const;
private:
- QmlDebugClientPrivate *d;
- friend class QmlDebugClientPlugin;
- friend class QmlDebugClientPluginPrivate;
+ QmlDebugConnectionPrivate *d;
+ friend class QmlDebugClient;
+ friend class QmlDebugClientPrivate;
};
-class QmlDebugClientPluginPrivate;
-class Q_DECLARATIVE_EXPORT QmlDebugClientPlugin : public QObject
+class QmlDebugClientPrivate;
+class Q_DECLARATIVE_EXPORT QmlDebugClient : public QObject
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlDebugClientPlugin)
- Q_DISABLE_COPY(QmlDebugClientPlugin)
+ Q_DECLARE_PRIVATE(QmlDebugClient)
+ Q_DISABLE_COPY(QmlDebugClient)
public:
- QmlDebugClientPlugin(const QString &, QmlDebugClient *parent);
+ QmlDebugClient(const QString &, QmlDebugConnection *parent);
QString name() const;
@@ -88,8 +88,8 @@ protected:
virtual void messageReceived(const QByteArray &);
private:
- friend class QmlDebugClient;
- friend class QmlDebugClientPrivate;
+ friend class QmlDebugConnection;
+ friend class QmlDebugConnectionPrivate;
};
QT_END_NAMESPACE