summaryrefslogtreecommitdiffstats
path: root/src/declarative/debugger/qmldebugclient.cpp
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/debugger/qmldebugclient.cpp
parent27bc784715b3960a0d38157dd2b4f8b4913ca071 (diff)
downloadQt-a3cfd5cd28c1450796f23a847afde0510171dd23.zip
Qt-a3cfd5cd28c1450796f23a847afde0510171dd23.tar.gz
Qt-a3cfd5cd28c1450796f23a847afde0510171dd23.tar.bz2
Rename classes
Diffstat (limited to 'src/declarative/debugger/qmldebugclient.cpp')
-rw-r--r--src/declarative/debugger/qmldebugclient.cpp66
1 files changed, 33 insertions, 33 deletions
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 &)
{
}