QmlDebugger: Buffer messages in QmlAdapter until client is ready

Don't 'loose' messages at startup because the client is not enabled
yet / sendMessage will silently fail.

Reviewed-by: Christiaan Janssen
This commit is contained in:
Kai Koehne
2010-09-30 15:03:42 +02:00
parent 226a82d3dc
commit a03e75726a
4 changed files with 28 additions and 9 deletions

View File

@@ -84,6 +84,7 @@ signals:
void serviceConnectionError(const QString serviceName);
private slots:
void sendMessage(const QByteArray &msg);
void connectionErrorOccurred(QAbstractSocket::SocketError socketError);
void clientStatusChanged(QDeclarativeDebugClient::Status status);
void connectionStateChanged();
@@ -94,6 +95,7 @@ private:
void createDebuggerClient();
void showConnectionStatusMessage(const QString &message);
void showConnectionErrorMessage(const QString &message);
void flushSendBuffer();
private:
QScopedPointer<QmlAdapterPrivate> d;