I am writing a mobile app in Qt Creator and I want to enable and disable certain behaviors depending on whether the device is 1) disconnected 2) connected via cellular or 3) connected via wifi. I see AppFramework.network has several properties that seem to be in the ballpark. Specifically AppFramework.network.BearerWLAN looks like it might indicate the network is wifi and all the other Bearer~ properties (other than BearerEthernet) suggest cellular connections. Is this correct? If so, how do I leverage this property which is numeric to compare it to my boolean property that indicates if the user has chosen to only use wifi connections? It doesn't appear I can verify it like this:
if (AppFramework.network.isOnline && ( (wifiOnly.checked && AppFramework.network.BearerWLAN) || (wifiCell.checked) ))
wifiOnly.checked and wifiCell.checked are user-configured settings in the app for the permitted connectivity.