Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmldebugconnection_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQMLDEBUGCONNECTION_P_H
5#define QQMLDEBUGCONNECTION_P_H
6
7#include <QtCore/qobject.h>
8#include <QtNetwork/qabstractsocket.h>
9#include <QtCore/private/qglobal_p.h>
10
11//
12// W A R N I N G
13// -------------
14//
15// This file is not part of the Qt API. It exists purely as an
16// implementation detail. This header file may change from version to
17// version without notice, or even be removed.
18//
19// We mean it.
20//
21
23
24class QQmlDebugClient;
27{
29 Q_DECLARE_PRIVATE(QQmlDebugConnection)
30public:
33
34 void connectToHost(const QString &hostName, quint16 port);
36
37 int currentDataStreamVersion() const;
38 void setMaximumDataStreamVersion(int maximumVersion);
39
40 bool isConnected() const;
41 bool isConnecting() const;
42
43 void close();
44 bool waitForConnected(int msecs = 30000);
45
46 QQmlDebugClient *client(const QString &name) const;
48 bool removeClient(const QString &name);
49
50 float serviceVersion(const QString &serviceName) const;
51 bool sendMessage(const QString &name, const QByteArray &message);
52
54 void connected();
58
59private:
60 void newConnection();
61 void socketConnected();
62 void socketDisconnected();
63 void protocolReadyRead();
64 void handshakeTimeout();
65};
66
68
69#endif // QQMLDEBUGCONNECTION_P_H
SocketState
This enum describes the different states in which a socket can be.
SocketError
This enum describes the socket errors that can occur.
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
QQmlDebugConnection(QObject *parent=nullptr)
bool addClient(const QString &name, QQmlDebugClient *client)
void socketError(QAbstractSocket::SocketError socketError)
void setMaximumDataStreamVersion(int maximumVersion)
bool sendMessage(const QString &name, const QByteArray &message)
bool removeClient(const QString &name)
QQmlDebugClient * client(const QString &name) const
float serviceVersion(const QString &serviceName) const
void socketStateChanged(QAbstractSocket::SocketState socketState)
bool waitForConnected(int msecs=30000)
void startLocalServer(const QString &fileName)
void connectToHost(const QString &hostName, quint16 port)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
EGLOutputPortEXT port
GLuint GLsizei const GLchar * message
GLuint name
#define Q_OBJECT
#define Q_SIGNALS
unsigned short quint16
Definition qtypes.h:48