diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2021-10-11 07:23:38 +0200 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2021-10-12 08:54:17 +0000 |
commit | dc01509878d8598759d7cde99f57b594d934b29e (patch) | |
tree | 3144f4bf5e749a57f6fbe43cfd776868c46ddc46 /src/network | |
parent | 826765f654e43034929ff6fbc975ab0ab5d6922a (diff) |
QNI: Add missing transportMedium documentation
I forgot
Fixes: QTBUG-97409
Change-Id: I5ee94b2cc4c70b6408bb9bb9368c6876f3179783
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/kernel/qnetworkinformation.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/network/kernel/qnetworkinformation.cpp b/src/network/kernel/qnetworkinformation.cpp index b9a0372b88..fabce63979 100644 --- a/src/network/kernel/qnetworkinformation.cpp +++ b/src/network/kernel/qnetworkinformation.cpp @@ -449,6 +449,10 @@ QNetworkInformationBackendFactory::~QNetworkInformationBackendFactory() \value CaptivePortal If the plugin supports this feature then the \c isBehindCaptivePortal property will be available. + + \value TransportMedium + If the plugin supports this feature then the \c transportMedium + property will be available. */ /*! @@ -475,6 +479,32 @@ QNetworkInformationBackendFactory::~QNetworkInformationBackendFactory() */ /*! + \enum QNetworkInformation::TransportMedium + \since 6.3 + + Lists the currently recognized media with which one can connect to the + internet. + + \value Unknown + Returned if either the OS reports no active medium, the active medium is + not recognized by Qt, or the TransportMedium feature is not supported. + \value Ethernet + Indicates that 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 Cellular + Indicates that the currently active connection is using a cellular + network. + \value WiFi + Indicates that the currently active connection is using Wi-Fi. + \value Bluetooth + Indicates that the currently active connection is connected using + Bluetooth. + + \sa QNetworkInformation::transportMedium +*/ + +/*! \internal ctor */ QNetworkInformation::QNetworkInformation(QNetworkInformationBackend *backend) |