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>
34 static inline const char16_t PluginNames[4][22] = {
35 { u
"networklistmanager" },
36 { u
"scnetworkreachability" },
38 { u
"networkmanager" },
40 static constexpr int PluginNamesWindowsIndex = 0;
41 static constexpr int PluginNamesAppleIndex = 1;
42 static constexpr int PluginNamesAndroidIndex = 2;
43 static constexpr int PluginNamesLinuxIndex = 3;
65 if (m_reachability != reachability) {
66 m_reachability = reachability;
67 emit reachabilityChanged(reachability);
73 if (m_behindCaptivePortal != behindPortal) {
74 m_behindCaptivePortal = behindPortal;
75 emit behindCaptivePortalChanged(behindPortal);
81 if (m_transportMedium != medium) {
82 m_transportMedium = medium;
89 if (m_metered != isMetered) {
90 m_metered = isMetered;
91 emit isMeteredChanged(isMetered);
96 Reachability m_reachability = Reachability::Unknown;
97 TransportMedium m_transportMedium = TransportMedium::Unknown;
98 bool m_behindCaptivePortal =
false;
99 bool m_metered =
false;
110 using Features = QNetworkInformation::Features;
122#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)