45 #include <private/qdeclarativedebugserver_p.h> 46 #include <private/qpacketprotocol_p.h> 87 return d->ost &&
d->ost->isOpen();
100 d->protocol->send(pack);
115 return d->protocol->waitForReadyRead(-1);
128 if (
d->ost->errorString().length())
130 qWarning(
"QDeclarativeDebugServer: Unable to listen on OST");
135 qWarning(
"QDeclarativeDebugServer: Waiting for connection via OST");
141 QPacket packet =
d->protocol->read();
144 d->debugServer->receiveMessage(content);
#define QT_END_NAMESPACE
This macro expands to.
char * data()
Returns a pointer to the data stored in the byte array.
static const TInt KQmlOstProtocolId
QPacketProtocol * protocol
The QByteArray class provides an array of bytes.
void setPort(int port, bool bock)
The QPacketProtocol class encapsulates communicating discrete packets across fragmented IO channels...
The QPacket class encapsulates an unfragmentable packet of data to be transmitted by QPacketProtocol...
Q_CORE_EXPORT void qDebug(const char *,...)
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
Q_CORE_EXPORT void qWarning(const char *,...)
QByteArray data() const
Returns raw packet data.
QDeclarativeDebugServer * debugServer
void setServer(QDeclarativeDebugServer *server)
int length() const
Same as size().
static QAuServer & server()
QmlOstPluginPrivate * d_ptr
void send(const QByteArray &message)
#define qPrintable(string)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
int writeRawData(const char *, int len)
Writes len bytes from s to the stream.
#define Q_EXPORT_PLUGIN2(PLUGIN, PLUGINCLASS)