blob: 1628c6cbb34caf4cbbd85407a8f83f38df74083f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\qmltype NetworkInformation
\inqmlmodule QtNetwork
\instantiates QNetworkInformation
\brief Provides a cross-platform interface to network-related information.
NetworkInformation provides a cross-platform interface to network-related information.
NetworkInformation is a singleton.
\sa QNetworkInformation
*/
/*!
\qmlproperty enumeration NetworkInformation::reachability
\readonly
Holds the current state of the system's network connectivity.
\value NetworkInformation.Reachability.Unknown
Connection may be established but the OS has yet to confirm full
connectivity, or this feature is not supported.
\value NetworkInformation.Reachability.Disconnected
The system may not have connectivity at all.
\value NetworkInformation.Reachability.Local
The system is connected to a network, but might only be able to
access devices on the local network.
\value NetworkInformation.Reachability.Site
The system is connected to a network, but might only be able to
access devices on the local subnet or an intranet.
\value NetworkInformation.Reachability.Online
The system is connected to a network and able to access the Internet.
*/
/*!
\qmlproperty bool NetworkInformation::isBehindCaptivePortal
\readonly
Indicates if the user's device is currently known to be behind a captive portal.
*/
/*!
\qmlproperty enumeration NetworkInformation::transportMedium
\readonly
Holds the currently active transport medium for the application.
\value NetworkInformation.TransportMedium.Unknown
If the OS reports no active medium, the active medium is not recognized by Qt,
or the TransportMedium feature is not supported.
\value NetworkInformation.TransportMedium.Ethernet
The currently active connection is using Ethernet. Note: This value may also be
returned when Windows is connected to a Bluetooth personal area network.
\value NetworkInformation.TransportMedium.Cellular
The currently active connection is using a cellular network.
\value NetworkInformation.TransportMedium.WiFi
The currently active connection is using Wi-Fi.
\value NetworkInformation.TransportMedium.Bluetooth
The currently active connection is connected using Bluetooth.
*/
/*!
\qmlproperty bool NetworkInformation::isMetered
\readonly
Returns whether the current connection is (known to be) metered or not.
*/
|