Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant
4
5
#
ifndef
QQMLDEBUGCONNECTION_P_H
6
#
define
QQMLDEBUGCONNECTION_P_H
7
8
#
include
<
QtCore
/
qobject
.
h
>
9
#
include
<
QtNetwork
/
qabstractsocket
.
h
>
10
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
11
12
//
13
// W A R N I N G
14
// -------------
15
//
16
// This file is not part of the Qt API. It exists purely as an
17
// implementation detail. This header file may change from version to
18
// version without notice, or even be removed.
19
//
20
// We mean it.
21
//
22
23
QT_BEGIN_NAMESPACE
24
25
class
QQmlDebugClient
;
26
class
QQmlDebugConnectionPrivate
;
27
class
QQmlDebugConnection
:
public
QObject
28
{
29
Q_OBJECT
30
Q_DECLARE_PRIVATE(
QQmlDebugConnection
)
31
public
:
32
QQmlDebugConnection
(
QObject
*
parent
=
nullptr
);
33
~
QQmlDebugConnection
();
34
35
void
connectToHost
(
const
QString &hostName, quint16 port);
36
void
startLocalServer
(
const
QString &fileName);
37
38
int
currentDataStreamVersion
()
const
;
39
void
setMaximumDataStreamVersion
(
int
maximumVersion);
40
41
bool
isConnected
()
const
;
42
bool
isConnecting
()
const
;
43
44
void
close
();
45
bool
waitForConnected
(
int
msecs = 30000);
46
47
QQmlDebugClient
*
client
(
const
QString &name)
const
;
48
bool
addClient
(
const
QString &name,
QQmlDebugClient
*client);
49
bool
removeClient
(
const
QString &name);
50
51
float
serviceVersion
(
const
QString &serviceName)
const
;
52
bool
sendMessage
(
const
QString &name,
const
QByteArray &message);
53
54
Q_SIGNALS
:
55
void
connected
();
56
void
disconnected
();
57
void
socketError
(QAbstractSocket::SocketError socketError);
58
void
socketStateChanged
(QAbstractSocket::SocketState socketState);
59
60
private
:
61
void
newConnection();
62
void
socketConnected();
63
void
socketDisconnected();
64
void
protocolReadyRead();
65
void
handshakeTimeout();
66
};
67
68
QT_END_NAMESPACE
69
70
#
endif
// QQMLDEBUGCONNECTION_P_H
QQmlDebugClientPrivate
Definition
qqmldebugclient_p_p.h:27
QQmlDebugClientPrivate::connection
QPointer< QQmlDebugConnection > connection
Definition
qqmldebugclient_p_p.h:34
QQmlDebugClientPrivate::addToConnection
void addToConnection()
Definition
qqmldebugclient.cpp:40
QQmlDebugClientPrivate::name
QString name
Definition
qqmldebugclient_p_p.h:33
QQmlDebugClient
Definition
qqmldebugclient_p.h:27
QQmlDebugClient::QQmlDebugClient
QQmlDebugClient(const QString &name, QQmlDebugConnection *parent)
Definition
qqmldebugclient.cpp:13
QQmlDebugClient::name
QString name() const
Definition
qqmldebugclient.cpp:49
QQmlDebugClient::messageReceived
virtual void messageReceived(const QByteArray &message)
Definition
qqmldebugclient.cpp:85
QQmlDebugClient::serviceVersion
float serviceVersion() const
Definition
qqmldebugclient.cpp:55
QQmlDebugClient::QQmlDebugClient
QQmlDebugClient(QQmlDebugClientPrivate &dd)
Definition
qqmldebugclient.cpp:20
QQmlDebugClient::sendMessage
void sendMessage(const QByteArray &message)
Definition
qqmldebugclient.cpp:73
QQmlDebugClient::state
State state() const
Definition
qqmldebugclient.cpp:61
QQmlDebugClient::connection
QQmlDebugConnection * connection() const
Definition
qqmldebugclient.cpp:79
QQmlDebugClient::~QQmlDebugClient
~QQmlDebugClient()
Definition
qqmldebugclient.cpp:27
QQmlDebugConnectionPrivate
Definition
qqmldebugconnection.cpp:27
QQmlDebugConnection
Definition
qqmldebugconnection_p.h:28
QQmlDebugConnection::isConnecting
bool isConnecting() const
Definition
qqmldebugconnection.cpp:250
QQmlDebugConnection::addClient
bool addClient(const QString &name, QQmlDebugClient *client)
Definition
qqmldebugconnection.cpp:297
QQmlDebugConnection::socketError
void socketError(QAbstractSocket::SocketError socketError)
QQmlDebugConnection::setMaximumDataStreamVersion
void setMaximumDataStreamVersion(int maximumVersion)
Definition
qqmldebugconnection.cpp:238
QQmlDebugConnection::sendMessage
bool sendMessage(const QString &name, const QByteArray &message)
Definition
qqmldebugconnection.cpp:325
QQmlDebugConnection::removeClient
bool removeClient(const QString &name)
Definition
qqmldebugconnection.cpp:308
QQmlDebugConnection::client
QQmlDebugClient * client(const QString &name) const
Definition
qqmldebugconnection.cpp:291
QQmlDebugConnection::serviceVersion
float serviceVersion(const QString &serviceName) const
Definition
qqmldebugconnection.cpp:319
QQmlDebugConnection::disconnected
void disconnected()
QQmlDebugConnection::socketStateChanged
void socketStateChanged(QAbstractSocket::SocketState socketState)
QQmlDebugConnection::currentDataStreamVersion
int currentDataStreamVersion() const
Definition
qqmldebugconnection.cpp:232
QQmlDebugConnection::waitForConnected
bool waitForConnected(int msecs=30000)
Definition
qqmldebugconnection.cpp:274
QQmlDebugConnection::~QQmlDebugConnection
~QQmlDebugConnection()
Definition
qqmldebugconnection.cpp:224
QQmlDebugConnection::isConnected
bool isConnected() const
Definition
qqmldebugconnection.cpp:244
QQmlDebugConnection::startLocalServer
void startLocalServer(const QString &fileName)
Definition
qqmldebugconnection.cpp:363
QQmlDebugConnection::connectToHost
void connectToHost(const QString &hostName, quint16 port)
Definition
qqmldebugconnection.cpp:347
QQmlDebugConnection::close
void close()
Definition
qqmldebugconnection.cpp:256
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
qmldebug
qqmldebugconnection_p.h
Generated on
for Qt by
1.18.0