/****************************************************************************
**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/
**
** This file is part of the QtDeclarative module of the Qt Toolkit.
**
**
**
**
+**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QTCPSERVERCONNECTION_H
#define QTCPSERVERCONNECTION_H
+#include <QtWidgets/QStylePlugin>
#include <QtDeclarative/private/qdeclarativedebugserverconnection_p.h>
QT_BEGIN_NAMESPACE
void setPort(int port, bool bock);
bool isConnected() const;
- void send(const QByteArray &message);
+ void send(const QList<QByteArray> &messages);
void disconnect();
+ bool waitForMessage();
void listen();
void waitForConnection();
private Q_SLOTS:
void readyRead();
void newConnection();
+ void invalidPacket();
private:
QTcpServerConnectionPrivate *d_ptr;