From dc01509878d8598759d7cde99f57b594d934b29e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Mon, 11 Oct 2021 07:23:38 +0200 Subject: QNI: Add missing transportMedium documentation I forgot Fixes: QTBUG-97409 Change-Id: I5ee94b2cc4c70b6408bb9bb9368c6876f3179783 Reviewed-by: Timur Pocheptsov Reviewed-by: Edward Welbourne --- src/network/kernel/qnetworkinformation.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'src/network') 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. */ /*! @@ -474,6 +478,32 @@ QNetworkInformationBackendFactory::~QNetworkInformationBackendFactory() \sa QNetworkInformation::reachability */ +/*! + \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 */ -- cgit v1.2.3