Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmldebugserverconnection_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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:critical reason:network-protocol
4
5#ifndef QQMLDEBUGSERVERCONNECTION_P_H
6#define QQMLDEBUGSERVERCONNECTION_P_H
7
8#include <private/qtqmlglobal_p.h>
9#include <QtCore/qobject.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
22QT_BEGIN_NAMESPACE
23
24class QQmlDebugServer;
25class Q_QML_EXPORT QQmlDebugServerConnection : public QObject
26{
27 Q_OBJECT
28public:
29 QQmlDebugServerConnection(QObject *parent = nullptr) : QObject(parent) {}
30 ~QQmlDebugServerConnection() override;
31
32 virtual void setServer(QQmlDebugServer *server) = 0;
33 virtual bool setPortRange(int portFrom, int portTo, bool block, const QString &hostaddress) = 0;
34 virtual bool setFileName(const QString &fileName, bool block) = 0;
35 virtual bool isConnected() const = 0;
36 virtual void disconnect() = 0;
37 virtual void waitForConnection() = 0;
38 virtual void flush() = 0;
39};
40
41class Q_QML_EXPORT QQmlDebugServerConnectionFactory : public QObject
42{
43 Q_OBJECT
44public:
45 ~QQmlDebugServerConnectionFactory() override;
46 virtual QQmlDebugServerConnection *create(const QString &key) = 0;
47};
48
49#define QQmlDebugServerConnectionFactory_iid "org.qt-project.Qt.QQmlDebugServerConnectionFactory"
51
52QT_END_NAMESPACE
53
54#endif // QQMLDEBUGSERVERCONNECTION_H
Q_DECLARE_INTERFACE(QNetworkAccessBackendFactory, QNetworkAccessBackendFactory_iid)
#define QQmlDebugServerConnectionFactory_iid