4#ifndef QNETWORKINFORMATION_P_H
5#define QNETWORKINFORMATION_P_H
18#include <QtNetwork/private/qtnetworkglobal_p.h>
20#include <QtNetwork/qnetworkinformation.h>
22#include <QtCore/qloggingcategory.h>
23#include <QtCore/qreadwritelock.h>
35 static inline const char16_t PluginNames[4][22] = {
36 { u
"networklistmanager" },
37 { u
"scnetworkreachability" },
39 { u
"networkmanager" },
41 static constexpr int PluginNamesWindowsIndex = 0;
42 static constexpr int PluginNamesAppleIndex = 1;
43 static constexpr int PluginNamesAndroidIndex = 2;
44 static constexpr int PluginNamesLinuxIndex = 3;
55 return m_reachability;
61 return m_behindCaptivePortal;
67 return m_transportMedium;
86 if (m_reachability != reachability) {
87 m_reachability = reachability;
89 emit reachabilityChanged(reachability);
96 if (m_behindCaptivePortal != behindPortal) {
97 m_behindCaptivePortal = behindPortal;
99 emit behindCaptivePortalChanged(behindPortal);
106 if (m_transportMedium != medium) {
107 m_transportMedium = medium;
116 if (m_metered != isMetered) {
117 m_metered = isMetered;
119 emit isMeteredChanged(isMetered);
125 Reachability m_reachability = Reachability::Unknown;
126 TransportMedium m_transportMedium = TransportMedium::Unknown;
127 bool m_behindCaptivePortal =
false;
128 bool m_metered =
false;
139 using Features = QNetworkInformation::Features;
151#define QNetworkInformationBackendFactory_iid "org.qt-project.Qt.NetworkInformationBackendFactory"
static void transportMediumChanged(JNIEnv *env, jobject obj, jint enumValue)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define Q_DECLARE_INTERFACE(IFace, IId)