summaryrefslogtreecommitdiffstats
path: root/src/networksettings
Commit message (Collapse)AuthorAgeFilesLines
* Fix reporting correct security protocolPasi Petäjäjärvi2023-06-061-1/+6
| | | | | | | | | | Class variables where not initialized to any default values and could be random. Fixes: QTBUG-103495 Change-Id: Ifa8bd7b860bb2fa81d113a14bd0a081935209b55 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* 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>
* Fix dynamic interface handlingPasi Petäjäjärvi2022-06-152-8/+3
| | | | | | | | | 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)
* 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. 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>
* 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 Change-Id: I0a217b1bd334073cc6621397ad09ce6a98776ab1 Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io> (cherry picked from commit b80655d9ec266155e3719d91c17ed69e81a3a103) Reviewed-by: Janne Juntunen <janne.juntunen@qt.io> Reviewed-by: Samuli Piippo <samuli.piippo@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 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>
* new menu item for usb ethernet protocol selectionRami Potinkara2020-07-154-1/+143
| | | | | | | Task-number: QTBUG-83011 Change-Id: I8098ef26c9fa42cdf301145937eca011365d6f19 Pick-to: 5.15 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>
* Add support for wi-fi networks with hidden SSIDVille Voutilainen2018-04-2713-17/+222
| | | | | | Task-number: QTBUG-62661 Change-Id: I894f37d2ac397ca2a10db92b1daec9997a9733bb Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Forward-port the improvement in passphrase error handlingVille Voutilainen2018-03-284-0/+19
| | | | | | Task-number: QTBUG-66280 Change-Id: I1c26e19907be99119bf9409c7269471c15b57bf8 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Merge remote-tracking branch 'origin/5.10' into devMikko Gronoff2017-12-1927-21/+128
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-2427-21/+128
| | | | | | | | | | | | | | Task-number: QTBUG-64693 Change-Id: I35487b54271f031077c0f96a90eb47f0683caa77 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* | Don't start scanning if interface is not poweredSami Nurmenniemi2017-11-221-1/+4
| | | | | | | | | | | | | | | | | | This fixes "no carrier" prints when opening settings menu Task-number: QTBUG-64230 Change-Id: Ic01b50cfa5d337a66d064babca9e2aa4e9f87a00 Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* | More user friendly handling of WiFi passphraseSami Nurmenniemi2017-11-222-6/+2
| | | | | | | | | | | | | | Task-number: QTBUG-64230 Change-Id: I9de0f5668b419e322a3b0466f2e30a6f957e617e Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* | Fix cancel button on WiFi passphrase screenSami Nurmenniemi2017-11-222-5/+17
| | | | | | | | | | | | | | Task-number: QTBUG-64230 Change-Id: I3859293f2d9422be9a253143544470f39be937ea Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* | Bluetooth on/off switch now enables/disables bluetooth deviceSami Nurmenniemi2017-11-222-0/+4
| | | | | | | | | | | | | | Task-number: QTBUG-64230 Change-Id: I151933f74f459f245822a5986b009d686ce6fdfd Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* | Add Wi-Fi enable button to network settingsSami Nurmenniemi2017-11-222-3/+22
| | | | | | | | | | | | | | Task-number: QTBUG-64230 Change-Id: I2aad07fb98a45997b116fc9a06924ba8be3dff2a Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* | Update API and settings UIJuho Annunen2017-11-221-2/+2
|/ | | | | | | | | Implemented new UI design for Settings and minor changes to API Task-number: QTBUG-63091 Change-Id: Id72e20b53bc33ca0a3068d1e9b664fc5836a1cda 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-047-0/+76
| | | | | | | | | | | 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>
* Use both IPv4.Configuration and IPv4 for reading connman settingsVille Voutilainen2017-06-291-3/+12
| | | | | | Task-number: QTBUG-60979 Change-Id: Iac5659897391f2517704a8347c7ef8a77a6000e7 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
* Set a default netmask and gateway if the user didn't provide themVille Voutilainen2017-06-141-0/+17
| | | | | | Task-number: QTBUG-60979 Change-Id: Icf0d23b080d7769c601b1835b182421dfb588638 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Don't give connman user name as a network nameKari Oikarinen2017-04-107-25/+12
| | | | | | | | | | Don't give the network name as all, since it is not required for visible networks. Also adjust the API to remove the user name parameter that was never used (correctly). Task-number: QTBUG-57249 Change-Id: I0eb75db6eebcaa05661a9404b728ab8af831cf1d Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Fix bad annotations of D-Bus signal argumentsKari Oikarinen2017-04-051-3/+3
| | | | | | | | The arguments are out arguments, not in arguments, so the previous annotations did not match. Change-Id: I2b96fba03a73391c139503c07a27357866b5798f Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
* Remove duplicate D-Bus annotationKari Oikarinen2017-04-051-1/+0
| | | | | Change-Id: Idec7afe54ad9f1dc4877493c6bfaa17d88457a04 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>