summaryrefslogtreecommitdiffstats
path: root/src/plugins/networkinformation/android
Commit message (Collapse)AuthorAgeFilesLines
* QNI: Add a convenience method for loading the default pluginMårten Nordheim2021-10-221-3/+6
| | | | | | | | | We have some official plugins, we may as well treat them as default and give a convenient function which loads those. Change-Id: I6251c77ac042b795bcf24b86e510e960ee4bab54 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* Android: remove unused imports and fix warning on network java codeAssam Boudjelthia2021-10-121-3/+2
| | | | | | Pick-to: 6.2 Change-Id: Ifa69c04f7f2e75751b6f8a157d04f3870f0c0eb1 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* QNI:Android: unify behavior of callbacksMårten Nordheim2021-10-074-46/+35
| | | | | | | | | | | | The first callback added for the android backend does not have the value as a parameter which is something the other callbacks have. Change it so it does. And promote the lambda to a real function. Change-Id: I06f10f7c79f33a5ea3154f2fc6d20d550cd7eca7 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* QNetworkInformation: add support for transportMedium on AndroidMårten Nordheim2021-10-074-3/+124
| | | | | | | | | | | | | | | | | | | | It's part of the capabilities which we are already using. It also lets us work around a pre-existing edge-case where, if you have a VPN enabled and enable Airplane mode it will continue to tell you it is Online even when it is not. This happens because VPN is reported as a transport and when Airplane mode is enabled it may be left enabled as the _only_ transport. At the same time clear the default filters (if any), and filter out suspended connections. May not necessarily make any difference. And add a comment for why we cannot use a technically more suitable type of callback. Task-number: QTBUG-91023 Change-Id: Ic26c4d4e8da139ec8606a0b1bf5fb7157bd0beaf Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Android: Update and add missing gradle files for jar foldersAssam Boudjelthia2021-10-063-0/+60
| | | | | | | | | | | | Update the build.gradle for main Qt jar code, and add same files for network and network information backend, so the code can be managed from Android Studio. This also adds .gitignore to ignore Android Studio build artefacts. Pick-to: 6.2 Change-Id: Ic06e9d12708070fad112f17e58b8754608d184f3 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* TLS plugins: Prefix with 'q'Mårten Nordheim2021-08-301-1/+1
| | | | | | | | For consistency with other plugins. Pick-to: 6.2 Change-Id: I45507389a42e645c94f1ca3f32262a2181f282f7 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* CMake: Rename qt6_add_plugin TYPE option to PLUGIN_TYPEAlexandru Croitor2021-08-061-1/+1
| | | | | | | | | | | | | The intention is to remove TYPE as a keyword completely before 6.2.0 release, but in case if that's not possible due to the large amount of repositories and examples, just print a deprecation warning for now and handle both TYPE and PLUGIN_TYPE. Task-number: QTBUG-95170 Pick-to: 6.2 Change-Id: If0c18345483b9254b0fc21120229fcc2a2fbfbf5 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* QNetworkInformation: Rename the plugins and typeMårten Nordheim2021-06-115-0/+536
To better match other plugins in Qt Pick-to: 6.2 Change-Id: I6ab19603f13c80a8afe4fe69f64669559a0eea15 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Yuhang Zhao <2546789017@qq.com>