summaryrefslogtreecommitdiffstats
path: root/src/networksettings/connman/qnetworksettingsmanager_p.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/tqtc/lts-6.2.7' into ↵Tarja Sundqvist2023-10-121-2/+12
|\ | | | | | | | | | | tqtc/lts-6.2-opensource Change-Id: I48619dc80e7ce0e6d62b62a495e8abcea864265d
| * Fix occasional segmentation fault when processing wireless networksJanne Juntunen2022-11-081-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | Disconnect signals from a service which is about to be deleted later, so that it will not get added to the m_serviceModel list and become a dangling pointer there later on. Fixes: QTBUG-107561 Change-Id: Ifcd99bfacda8d4a932a93d10a94fa0e1613cbe98 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io> (cherry picked from commit d0fa6b32b1fac0cab77bbee8d5dd6723028f3f2e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* | Revert "Update commercial license headers"v6.2.5-lts-lgplTarja Sundqvist2022-11-241-12/+12
|/ | | | | | | | | | | This reverts commit 0d9eb62c49ab881adc97d5c067a668963766331c. Revert of commercial license headers is required for the Qt 6.2.x opensource releases, Qt 6.2.5 onwards. Task-number: QTBUG-107760 Change-Id: I2d32424b7f4cbe624ea31ae062753d9e6c429502 Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
* Fix crash when unplugging/plugging ethernet cablePasi Petäjäjärvi2022-06-141-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. Fixes: QTBUG-103327 Change-Id: If14a4f28217ba5883dbc23ba42a1e91b004b7d58 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io> (cherry picked from commit 26b002e1388d197772b56d471a6dd6ecc4ab2509) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix having zero initial technologies (interfaces) on devicePasi Petäjäjärvi2022-06-141-12/+15
| | | | | | | | | | | | We always expect to have at least one technology available when new technology is added via onTechnologyAdded Fixes: QTBUG-102816 Change-Id: Ia4f1c0b807ea14645a27bb1bc758f8879c5c2473 Reviewed-by: <schilling@mueller-elektronik.de> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io> (cherry picked from commit d40afbc3f42e4ba1873edcdfed185d11819d55a3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update commercial license headersTarja Sundqvist2022-06-131-12/+12
| | | | | | | | | | | | | | | Updated header.COMM to the files in tqtc-qtdeviceutilities. Examples, tests, or documentation files are not updated. The commercial license header may contain some additional lines so that its line count equals with the earlier license header. Reason for this is that some autotests use hard coded line numbers and a change in the line count causes failures in tests. Task-number: QTQAINFRA-4943 Change-Id: Iffbbfc261d34161e769961ea4f4711be1cf1c0a7 Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
* Cleanup codePasi Petäjäjärvi2022-01-171-11/+9
| | | | | | | | | | | | | * Replace Q_NULLPTR with nullptr * Remove usage of QT_FORWARD_DECLARE_CLASS * Clean header includes Task-number: QTBUG-99742 Change-Id: I1d33f33620fa70062381ba2d8597810e8840183c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io> (cherry picked from commit 4227ce75067551ab5821e880d93df1fa353ccaa4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix dynamic interface handlingPasi Petäjäjärvi2021-12-171-1/+1
| | | | | | | | | | Properly add/remove interface/technology when either physically added/removed or disable with connman Change-Id: I8d527c60a0e9218e3ae01ba6a685e067182622c1 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io> (cherry picked from commit 694effb2afc14961cd9cbda56da6fa6e1e07c607) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Do not leak QNetworkSettingsService instances for unnamed networksRobert Griebl2021-12-031-16/+55
| | | | | | | | | | | | | | | | | | 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 Change-Id: I0a217b1bd334073cc6621397ad09ce6a98776ab1 Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io> (cherry picked from commit b80655d9ec266155e3719d91c17ed69e81a3a103) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* 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 Change-Id: I21c22d2fe30daa980db0db90419fdd4051add29d Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io> (cherry picked from commit c3888262bfbc9f21614cee21976d4d9522547785) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Modify settingsui to work against Qt 6Lassi Lehikoinen2020-12-211-3/+0
| | | | | | | | | | | | | 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-161-5/+9
| | | | | | | | 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-161-84/+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-151-0/+86
| | | | | | 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
| * 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>
* Add support for dynamically add/remove physical network interfacesPasi Petäjäjärvi2018-10-251-0/+36
| | | | | Change-Id: I1690ce5f4b71c1faf14002a9389ca7b5f2b5665d Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Fix ip address tracking and displayVille Voutilainen2018-08-311-2/+3
| | | | | | Task-number: QTBUG-69814 Change-Id: Ifc90871c11aeddd1d07c5f1feb2a4292f0d36463 Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@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-241-3/+35
| | | | | | | | | | 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>
* Add support for wi-fi networks with hidden SSIDVille Voutilainen2018-04-271-0/+55
| | | | | | Task-number: QTBUG-62661 Change-Id: I894f37d2ac397ca2a10db92b1daec9997a9733bb Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Merge remote-tracking branch 'origin/5.10' into devMikko Gronoff2017-12-191-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/5.10: Merge remote-tracking branch 'origin/5.9' into 5.10 Fix compilation with namespaces Import only available modules Update license headers Verify that Qtdbus module is available tests: add tests.pro for CI Doc: Bump version to 5.9.3 Conflicts: src/bluetoothsettings/discoverymodel.cpp src/localesettings/localefiltermodel.cpp src/localesettings/localemodel.cpp src/timedatesettings/timezonefiltermodel.cpp Change-Id: Iabf7f372c634abea2734c97d748b3e836394ddb1
| * Fix compilation with namespacesSami Nurmenniemi2017-11-241-0/+4
| | | | | | | | | | | | | | Task-number: QTBUG-64693 Change-Id: I35487b54271f031077c0f96a90eb47f0683caa77 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* | More user friendly handling of WiFi passphraseSami Nurmenniemi2017-11-221-5/+2
|/ | | | | | | Task-number: QTBUG-64230 Change-Id: I9de0f5668b419e322a3b0466f2e30a6f957e617e Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Introduce a placeholder for removed wired networksVille Voutilainen2017-08-041-0/+7
| | | | | | | | | | | Disable entering the wired network settings when none have been seen. When a wired network is cable-disconnected, leave a placeholder for it. When a new wired network is cable-connected, replace the placeholder with that. Task-number: QTBUG-60979 Change-Id: I8eeb20d25d765c7bb104ad2e698e4d0686c8dc2d Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Fix QNetworkSettingsManager usage from the C++Teemu Holappa2016-11-171-20/+40
| | | | | | | | | Fixed servicesChanged signal handling. Fixed services and interfaces functions return types in QNetworkSettingsManager. Task-number: QTBUG-56760 Change-Id: Iaade0d5c06e8ff8f8dea4b421e226ae6348a9fe5 Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
* Use new style signals and slots connectionRainer Keller2016-10-311-4/+4
| | | | | | Change-Id: I3df221be0f389a4193ab9c7856b8efc40eef026f Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Fix uninitialized variablesRainer Keller2016-10-311-0/+5
| | | | | | Change-Id: I3bd9fb1254746f1bc0340db2b5b43fccfb356ce2 Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Fixes to networkSettingsService model handlingKimmo Ollila2016-06-141-6/+1
| | | | | Change-Id: Ifcea4b0111ad16f4c41692af4db04c044da8359b Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com>
* Fixed connman backend crashes and changed it as default.Kimmo Ollila2016-06-071-9/+18
| | | | | Change-Id: I65c6f4bf1e89c8f26b7c83a0d911813e7941c5a1 Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com>
* Replaced license headers with GPLv3Kimmo Ollila2016-06-021-18/+11
| | | | | | Change-Id: Ie355ff1e296ee48d4d66e0610e4df56640f829d4 Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com> Reviewed-by: Kalle Viironen <kalle.viironen@theqtcompany.com>
* Refactored Qml plugins into modules.Teemu Holappa2016-02-171-0/+171
Separated C++ and Qml interfaces. All the UI's from plugins are moved to the settingsui folder. Change-Id: Id6a6623346b18321357bc42d24121c4d9cdfd098 Reviewed-by: Kimmo Ollila <kimmo.ollila@theqtcompany.com>