summaryrefslogtreecommitdiffstats
path: root/src/networksettings
Commit message (Collapse)AuthorAgeFilesLines
* CMake: use PUBLIC_LIBRARIES as now NetworksSettings is pure libraryPasi Petäjäjärvi2022-06-271-1/+1
| | | | | | Pick-to: 6.4 Change-Id: I4e6d583baef0437dae4b6a677d1d3113504c3d46 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Use CMake-generated exports header filePasi Petäjäjärvi2022-06-2710-14/+55
| | | | | | | | | | | | | Fixes linking issues with gcc 12.1.0 + ld.gold (binutils 2.38) for qemu86_64 target. requires dynamic R_X86_64_PC32 reloc against '_ZN23QNetworkSettingsManager16staticMetaObjectE' which may overflow at runtime; recompile with -fPIC Pick-to: 6.3 6.4 Change-Id: Ifbc26357c5c360829b95e10e21ca37d2dd03efcf Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Doc: Fix documentation issuesTopi Reinio2022-06-153-3/+3
| | | | | | | | | | | Add unversioned project name as a \keyword. This fixes a number of links to "Qt Device Utilities". Fix a number of typos and other minor issues. Pick-to: 6.4 6.3 Change-Id: I0c1ed8812b2c360181189a22afd022df51bb21e7 Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
* Fix crash when unplugging/plugging ethernet cablePasi Petäjäjärvi2022-05-191-2/+4
| | | | | | | | | | | | We do not remove the ethernet service (network) when cable is disconnected. Instead it's "hold in place" via placeholder but that is not checked and plugging cable back will cause crash. Pick-to: 5.15 6.2 6.3 Fixes: QTBUG-103327 Change-Id: If14a4f28217ba5883dbc23ba42a1e91b004b7d58 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Fix having zero initial technologies (interfaces) on devicePasi Petäjäjärvi2022-05-121-12/+15
| | | | | | | | | | | We always expect to have at least one technology available when new technology is added via onTechnologyAdded Pick-to: 5.15 6.2 6.3 Fixes: QTBUG-102816 Change-Id: Ia4f1c0b807ea14645a27bb1bc758f8879c5c2473 Reviewed-by: <schilling@mueller-elektronik.de> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Cleanup codePasi Petäjäjärvi2022-01-1720-79/+71
| | | | | | | | | | | | * Replace Q_NULLPTR with nullptr * Remove usage of QT_FORWARD_DECLARE_CLASS * Clean header includes Task-number: QTBUG-99742 Pick-to: 6.2 6.3 Change-Id: I1d33f33620fa70062381ba2d8597810e8840183c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Refactor using Q_ENUM instead of deprecated Q_ENUMSPasi Petäjäjärvi2022-01-1414-130/+155
| | | | | | | | Task-number: QTBUG-99742 Pick-to: 6.2 6.3 Change-Id: I9f3fc10b562d5cf25b366cca9f299cc53bb0f9f5 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Fix dynamic interface handlingPasi Petäjäjärvi2021-12-172-8/+3
| | | | | | | | | Properly add/remove interface/technology when either physically added/removed or disable with connman Pick-to: 6.2 6.3 Change-Id: I8d527c60a0e9218e3ae01ba6a685e067182622c1 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Doc: Fix CMake build configuration for doc buildsTopi Reinio2021-12-161-0/+2
| | | | | | | | | | | * Add src/doc into the build * Select the correct doc template for online doc builds * Move and update the online sidebar * Fix q QDoc warning in passing Pick-to: 6.3 6.2 Change-Id: Ib40e5e05de337da59b69ce950edf2e9e041af536 Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
* Do not leak QNetworkSettingsService instances for unnamed networksRobert Griebl2021-12-032-22/+63
| | | | | | | | | | | | | | | | | For unnamed/hidden networks, a QNetworkSettingsService object was allocated every time connman reported these networks via its ServicesChanged signal. Depending on the system setup, this could happen as often as every 30sec. We now track these objects in m_unnamedServices and m_unknownServices to avoid those re-allocations. Also fixed a potential dangling pointer being returned from current{Wifi,Wired}Connection() Fixes: QTBUG-94864 Pick-to: 5.15 6.2 Change-Id: I0a217b1bd334073cc6621397ad09ce6a98776ab1 Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
* Fix servicesChanged() signal not being sentJanne Juntunen2021-12-021-1/+5
| | | | | | | | | | | Added servicesChanged() signal emitting when QNetworkSettingsManager notices that an existing wireless access point has disappeared. This functionality was missing previously. Fixes: QTBUG-90574 Pick-to: 5.15 6.2 Change-Id: I21c22d2fe30daa980db0db90419fdd4051add29d Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
* Fix exported QML typesPasi Petäjäjärvi2021-11-043-286/+0
| | | | | | | | | | | Currently exposed QML API is incorrect. Also move folder to prevent issues with pch generation with syncqt Task-number: QTBUG-97737 Change-Id: Iac58a2ba90f87302fc52a608ce7dea9acaedbdb6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* CMake: use LIBRARIES in pluginsSamuli Piippo2021-09-222-2/+2
| | | | | | | | | | Fix CMake warnings caused by using PUBLIC_LIBRARIES in plugins. Plugins are not intended to be linked to. They should not have any public properties, but LIBRARIES instead of PUBLIC_LIBRARIES. Pick-to: 6.2 Change-Id: I35644c7ea97f03f26086c2ae5d2ea14a9e7a0a78 Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
* Add full include path for dbus headerSamuli Piippo2021-09-221-1/+1
| | | | | | | src/networksettings/connman/connmancommon.h:33:10: fatal error: QtDBus: No such file or directory Change-Id: I4f6b4870533e6c178d425ea6d06fb2c7bba8564e Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
* Port qtdeviceutilities to use declarative typesDan Ackers2021-06-244-4/+290
| | | | | | Task-number: QTBUG-94426 Change-Id: I9ac17f38eccff96e25a6c1d40998b222d349274d Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* CMake: Update to latest Qt CMake APISamuli Piippo2021-06-141-1/+1
| | | | | | | Task-number: QTBUG-91621 Fixes: QTBUG-94396 Change-Id: Ieaf5241eeb297a86775bb784c39217eb2b92b1b9 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Remove all qmake filesSamuli Piippo2021-06-142-53/+0
| | | | | | | Support builds only with CMake. Change-Id: I4b242a27d2d747ffa2d9b55a43f0d2b8f5f4cbc2 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Support Conan buildsLassi Lehikoinen2021-03-161-3/+1
| | | | | | Task-number: QTBUG-87956 Change-Id: I9ffbaa512db918d406489e5d9667c26b95c3dd54 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Update documentation regarding Qt 6 changesLassi Lehikoinen2020-12-291-2/+9
| | | | | | Task-number: QTBUG-88332 Change-Id: Ie6b9310e73b5515c97c892fbc27cd89009011c98 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Modify settingsui to work against Qt 6Lassi Lehikoinen2020-12-213-6/+1
| | | | | | | | | | | | | Following modules are removed in Qt 6 - XmlListModel - QtGraphicalEffects Adapt settingsui to work without them. Also remove needless resources and make miscallaneous improvements. Task-number: QTBUG-89065 Change-Id: Ie66d73e4d8f9c1dd4cbec2fe5f9f71f32f7d1bdf Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Build device utilities with CMake and qmake against Qt 6Lassi Lehikoinen2020-12-169-19/+60
| | | | | | | | Also fix compiler warnings. Task-number: QTBUG-88317 Change-Id: Iff6014613a7d12426b6fe692dff0000c92930ace Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Remove all device utilities except network settingsLassi Lehikoinen2020-12-164-136/+0
| | | | | | | | | Also remove USB ethernet functionality from Qt Network Settings. Task-number: QTBUG-88315 Change-Id: I06c41b61854b57f57c264b3c98940333902222d2 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io> Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
* new menu item for usb ethernet protocol selectionRami Potinkara2020-07-154-1/+143
| | | | | | Task-number: QTBUG-83011 Change-Id: I8098ef26c9fa42cdf301145937eca011365d6f19 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Merge remote-tracking branch 'origin/5.13' into 5.14Mikko Gronoff2019-10-091-1/+1
|\ | | | | | | | | | | | | | | * origin/5.13: fad870b Merge remote-tracking branch 'origin/5.12' into 5.13 39772d9 Fix static ip address showing after reconnection Change-Id: I48a3f8ef1c787c37ae9c1fa0373ef9c797fd21df
| * Merge remote-tracking branch 'origin/5.12' into 5.13Mikko Gronoff2019-10-081-1/+1
| |\ | | | | | | | | | | | | | | | | | | * origin/5.12: 39772d9 Fix static ip address showing after reconnection Change-Id: I534bd8b4877893750fb902238bb8ff44394b8286
| | * Fix static ip address showing after reconnectionTeemu Holappa2019-10-081-1/+1
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-76224 Change-Id: I2684941df342c2a9ee0439a2e13a8894dd862965 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
* | | Fix compiler warnings in network settingsTeemu Holappa2019-10-081-4/+3
|/ / | | | | | | | | Change-Id: I4dbcb432c404bdb167a986390aa90c1092f88593 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
* | Merge remote-tracking branch 'origin/5.12' into 5.13Mikko Gronoff2019-10-0316-2201/+1
|\| | | | | | | | | | | | | * origin/5.12: 330b6f0 Drop wpa_supplicant from NetworkSettings Change-Id: I593834799c5ca47be3bf5d37378e3ccb8a334aed
| * Drop wpa_supplicant from NetworkSettingsAssam Boudjelthia2019-10-0216-2201/+1
| | | | | | | | | | | | | | | | | | wpa_supplicant is broken and have not been in use for several Qt releases, thus it's being dropped. Fixes: QTBUG-78442 Change-Id: Ia3645b54b22a2959b7f65fdec10b8beaa262ea1f Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* | Doc: Fix documentation warningsTopi Reinio2019-09-121-2/+1
| | | | | | | | | | | | | | No such QDoc command '\readwrite', plus minor language editing. Change-Id: I4b385343a51e95be42dcbf27c4b1b30793a9c6da Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | Add an example snippet to Network settings manager classTarja Sundqvist2019-08-071-1/+41
| | | | | | | | | | | | | | | | | | The NetworkSettingsManager class documentation is updated with an example code snippet. Task-number: QTBUG-76810 Change-Id: Ic02109332281357c941dec77fe2995988cbc9359 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* | Merge remote-tracking branch 'origin/5.12' into 5.13Qt Forward Merge Bot2019-08-031-7/+4
|\| | | | | | | Change-Id: I040ffc2c6edfb8115aa43da738e326a758117cc8
| * Remove duplicate nested isValid() conditionAssam Boudjelthia2019-07-301-7/+4
| | | | | | | | | | | | | | | | | | The if condition is duplicated in QNetworkSettingsServiceFilter::filterAcceptsRow() Change-Id: Ie93044cc11421c4a6247cc2e511c04036b2f625b Reviewed-by: Jani Launonen <jani.launonen@qt.io> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* | Implement network auto connection propertyKari Hormi2019-06-204-9/+33
| | | | | | | | | | | | Task-number: QTBUG-76537 Change-Id: I9388854a65706c643de2f184e6e680458af7bc1e Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
* | Implement setAutoConnect() functionKari Hormi2019-06-194-3/+16
|/ | | | | | | | | | This commit strictly implements the setAutoConnect function, but does not provide anything else. AutoConnect status query should still be implemented. Task-number: QTBUG-75729 Change-Id: I73e7ba9efe7c4efe6e46810c3efe054473f0a7e2 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
* Fix documentation build warningTarja Sundqvist2019-03-202-0/+42
| | | | | | | | Some build warnings fixed. The documentation was built with Qt 5.9. Change-Id: I8f988c1267a6a6ed925cfac1f0cd40547ffc8160 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Fix the list of linked Device Utilities modulesTarja Sundqvist2019-03-188-22/+44
| | | | | | | | | | | All Device Utilities modules are listed in the main page. Also All C++ classes / All QML Types pages added. Task-number: QTBUG-74231 Change-Id: Ia6b091e6d136b844c36de94f8fafa0bb7b199777 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Merge remote-tracking branch 'origin/5.11' into 5.12Mikko Gronoff2018-11-011-5/+7
|\ | | | | | | | | | | | | | | * origin/5.11: 069c88b Fix manual proxy configuration on the C++ side bbf0e42 Fix the name of the proxy URL property Change-Id: If7521f05aac2817565b887481507ab27de09ce9c
| * Fix manual proxy configuration on the C++ sideVille Voutilainen2018-11-011-4/+6
| | | | | | | | | | Change-Id: I702ae14b749e03a6cc96a982a9e7dad6f562a8a2 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
| * Fix the name of the proxy URL propertyVille Voutilainen2018-10-261-1/+1
| | | | | | | | | | Change-Id: I070538b9e7cafd4a79128280c05ca2503a539858 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* | Add support for dynamically add/remove physical network interfacesPasi Petäjäjärvi2018-10-257-3/+67
| | | | | | | | | | Change-Id: I1690ce5f4b71c1faf14002a9389ca7b5f2b5665d Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into 5.12Mikko Gronoff2018-10-158-4/+1052
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/5.11: 261e4c6 Doc: Add documentation for C++ classes 0ecd391 Fix ip address tracking and display Commit 0ecd391 originally cherry-picked from 5.12 branch, hence few bogus conflicts in qnetworksettingsmanager.cpp. Conflicts: src/networksettings/qnetworksettingsinterfacemodel.cpp src/networksettings/qnetworksettingsmanager.cpp Change-Id: Ib8007ffc55ba935da42209303f637b51bad3ab1d
| * Doc: Add documentation for C++ classesLeena Miettinen2018-10-158-4/+1052
| | | | | | | | | | | | | | | | | | Currently, only QML types are documented. Task-number: QTBUG-69686 Change-Id: Idc13bff25a154e88c6c769c0af37204573ec1118 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
| * Fix ip address tracking and displayVille Voutilainen2018-08-315-18/+47
| | | | | | | | | | | | | | Task-number: QTBUG-69814 Change-Id: Ifc90871c11aeddd1d07c5f1feb2a4292f0d36463 Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io> (cherry picked from commit 65b663a9be5d27cbb77b48f9e392c9463416383a)
* | Fix updating QDBusAbstractInterface.interfaces model on property changePasi Petäjäjärvi2018-09-042-0/+50
| | | | | | | | | | | | | | | | Currently properties are not updated when they are changing on the real interface. Change-Id: I960497bc6366ff5219e0536118f959ff07c33d12 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* | Fix ip address tracking and displayVille Voutilainen2018-08-315-18/+47
|/ | | | | | Task-number: QTBUG-69814 Change-Id: Ifc90871c11aeddd1d07c5f1feb2a4292f0d36463 Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
* Add missing powered property to NetworkInterfacePasi Petäjäjärvi2018-08-242-1/+6
| | | | | | | Document states it exist, but not actually publicly exposed. Change-Id: I30b215bfa555de05400dcc678a4544f5e2851ed5 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Remove extra servicesChanged signal emitPasi Petäjäjärvi2018-08-241-1/+0
| | | | | | | | Emitting servicesChanged signal is already handled in handleNewService function or will be handled in serviceReady function. Change-Id: I8b9670812a58871787991aeda2a425ea90ffca37 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Fix connman connection initialization after it is availablePasi Petäjäjärvi2018-08-242-3/+39
| | | | | | | | | | Currently if connman service is not up and running, we never try again to initialize connection to it and request network information. * Requires at least d-bus daemon to be running Change-Id: I70b0358ee255174edce8d578517e9df091206ceb Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Fix static buildSamuli Piippo2018-06-261-1/+0
| | | | | | | | | | | | | Fix all issues preventing static build: - make sure plugins are built statically by removing CONFIG += dll - add classname to all qmldirs - unify structure and the naming of all plugin classes - initialize resources in the plugins - explicitly include qtvirtualkeyboard plugin in the build Task-number: QTBUG-68988 Change-Id: I38cdbaae49dd198559be6c9fcd0b8d15a3979e4d Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>