4#include <QtNetwork/private/qnetworkinformation_p.h>
8#include <QtCore/qglobal.h>
9#include <QtCore/private/qobject_p.h>
11#include <QtDBus/qdbusmessage.h>
97 Q_UNREACHABLE_RETURN(
false);
125 return QNetworkInformation::Features(Feature::Reachability | Feature::CaptivePortal
126 | Feature::TransportMedium | Feature::Metered);
160 if (!backend->isValid())
161 delete std::exchange(backend,
nullptr);
173 updateReachability(iface.
state());
182 std::move(updateBehindCaptivePortal));
189 std::move(updateTransportMedium));
200#include "qnetworkmanagernetworkinformationbackend.moc"
bool isValid() const
Returns true if this is a valid reference to a remote object.
static bool networkManagerAvailable()
void stateChanged(NMState)
@ NM_STATE_CONNECTED_GLOBAL
@ NM_STATE_CONNECTED_SITE
@ NM_STATE_CONNECTED_LOCAL
NMConnectivityState connectivityState() const
void meteredChanged(NMMetered)
void connectivityChanged(NMConnectivityState)
NMDeviceType deviceType() const
void deviceTypeChanged(NMDeviceType)
@ NM_DEVICE_TYPE_OLPC_MESH
@ NM_DEVICE_TYPE_WIREGUARD
@ NM_DEVICE_TYPE_OVS_INTERFACE
@ NM_DEVICE_TYPE_OVS_PORT
@ NM_DEVICE_TYPE_INFINIBAND
@ NM_DEVICE_TYPE_ETHERNET
@ NM_DEVICE_TYPE_IP_TUNNEL
@ NM_DEVICE_TYPE_OVS_BRIDGE
@ NM_DEVICE_TYPE_WIFI_P2P
NMMetered meteredState() const
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromUtf16(const char16_t *, qsizetype size=-1)
void newState(QList< State > &states, const char *token, const char *lexem, bool pre)
Combined button and popup list for selecting options.
#define Q_LOGGING_CATEGORY(name,...)
#define Q_DECLARE_LOGGING_CATEGORY(name)
QFileInfo info(fileName)
[8]