1// Copyright (C) 2023 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 QQMLNETWORKINFORMATION_P_H
5#define QQMLNETWORKINFORMATION_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QQmlEngine>
19#include <QJSEngine>
20
21#include <QtNetwork/qnetworkinformation.h>
22#include <qtqmlnetworkexports.h>
23#include <QtQml/qqml.h>
24
25QT_BEGIN_NAMESPACE
26
27struct Q_QMLNETWORK_EXPORT QQmlNetworkInformation
28{
29 Q_GADGET
30 QML_FOREIGN(QNetworkInformation)
31 QML_NAMED_ELEMENT(NetworkInformation)
32 QML_ADDED_IN_VERSION(6, 7)
33 QML_SINGLETON
34
35public:
36 static QNetworkInformation *create(QQmlEngine *, QJSEngine *);
37};
38
39QT_END_NAMESPACE
40
41#endif
42

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

source code of qtdeclarative/src/qmlnetwork/qqmlnetworkinformation_p.h