summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp
Commit message (Collapse)AuthorAgeFilesLines
* winrt: Do not try to delete nullptr workerOliver Wolff2019-07-171-3/+1
| | | | | | | | | | | When calling QBluetoothDeviceDiscoveryAgentPrivate::stop the worker pointer is cleared in disconnectAndClearWorker so there is no need to call deleteLater (which will just result in a warning). Change-Id: I2713474833b61a12018ecfa6f9eb11618ed025a7 Task-number: QTBUG-75089 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* winrt: Avoid crash on device discovery when device has to be pairedOliver Wolff2018-09-271-2/+6
| | | | | | | | | | If a device has to be paired during device discovery on winrt it is possible that the pairing dialog is shown, while discovery hits its timeout. We have to protect against a late callback which tries to access a deleted object. Change-Id: I9756f993b4a31080b1ef518953bee6e75a24e315 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Merge remote-tracking branch 'origin/5.9' into 5.105.10Liang Qi2018-02-021-8/+17
|\ | | | | | | Change-Id: Ia3172f663412eb9df0b1c41fc114699813039c43
| * winrt: Finish classic BT device discovery if no device is foundOliver Wolff2018-01-191-8/+17
| | | | | | | | | | | | Task-number: QTBUG-65801 Change-Id: I32be0262165d963ba5fb933c73414451431b2242 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* | Windows: Do not assert due to insufficient accessAndy Shaw2018-01-251-23/+28
| | | | | | | | | | | | | | | | | | If the device does not give access to obtain the list of services, then it should not throw an assert as the connection still succeeded, but the device cannot be used. Change-Id: I650eaba085f30c3cdc9980dd53de63482c7e7531 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* | Merge remote-tracking branch 'gerrit/5.9' into 5.10v5.10.0-beta3Alex Blasche2017-10-171-4/+12
|\| | | | | | | Change-Id: I84bfe86751c27eabb4e75912ae3c0b4d3781faf1
| * winrt: Make sure that "finished" is emitted for device discoveryOliver Wolff2017-08-181-4/+12
| | | | | | | | | | | | | | | | | | If we do not scan for low energy devices, the timeout will never be triggered. In this case the discovery is finished as soon as every paired device has been handled by the worker. Change-Id: I59772e706ac0fbf62c560a54d650bef9815118b6 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* | windows: Make sure everything is properly CoInitialized on desktop useOliver Wolff2017-08-301-0/+6
| | | | | | | | | | | | | | Task-number: QTBUG-61566 Change-Id: I5f8ff2c3e8a841ab8c5a3fb465d0be4b003d7a2b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Add configure test to detect presence of winrt APIOliver Wolff2017-08-301-0/+4
|/ | | | | | | | | | | | | Instead of checking for a certain Windows version, we should check whether the API is actually available [ChangeLog][QtBluetooth][Windows] Enabled UWP backend for desktop Windows versions that support the API Task-number: QTBUG-61566 Change-Id: I8384119c70cc2c4bdcdbe6b297cfcf5fb3e3f534 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* winrt: Do not emit canceled in timeout case in device discoveryOliver Wolff2017-07-041-16/+1
| | | | | | | | | canceled should only be emitted if stop was used to abort a running device discovery. A timeout happening has to cause a normal finished. Change-Id: I1072c14a44b84da0cb93420cf7344b8bc56b523e Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Fix licensingv5.9.0-beta4Jani Heikkinen2017-04-281-14/+20
| | | | | | | | | - Remove unused license files - Switch old LGPLv21 license headers with LGPL one Task-number: QTBUG-57147 Change-Id: If7e286d2ce33077de2d9edfb14ecddfa5cd3027e Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Remove WinPhone leftoversOliver Wolff2017-02-081-14/+1
| | | | | Change-Id: I0bc4da9d8ac17930d509a55c8c5c6494dad4558f Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* winrt: Fixed null ptr access in LE device discoveryOliver Wolff2017-01-191-0/+4
| | | | | | | | | | For some devices DeviceInformation is null. These cases should not lead to a crash so we just ignore these devices. Change-Id: I9f55b6931c9790b4bdfe217fd506229d2125b78b Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* winrt: Keep device statics as worker membersOliver Wolff2016-11-151-27/+21
| | | | | Change-Id: Ie307c81f1ade857a7261ec5bb23d75cf392cb437 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* winrt: Fixed discovery of unpaired BTLE devicesOliver Wolff2016-11-151-88/+196
| | | | | | Task-number: QTBUG-55860 Change-Id: I2d7b53c12a7fc02b37764885a1124a2b782f4ee1 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* winrt: Enable BTLE support for Windows 10 (Mobile)Oliver Wolff2016-10-071-233/+297
| | | | | | | | | | | | | | | | | As Windows 10 (Mobile) asks for permission before the user is able to use a Bluetooth (LE) device, the synchronous approach does not work any more. While implementing that new asynchronous way the sources were also cleaned up to be more readable (separate declaration and definition of QWinRTBluetoothDeviceDiscoveryWorker). As device discovery and Bluetooth LE work as expected on Windows 10 (Mobile) it is enabled by default now. Task-number: QTBUG-55862 Change-Id: I9e4a8d21d013b9eaf603380a784afdda3e1ab9ec Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* winrt: Added missing error handling to device discovery and low energyOliver Wolff2016-10-041-17/+34
| | | | | | | Task-number: QTBUG-56191 Task-number: QTBUG-56219 Change-Id: I8ad3dc392d09055418b0dca3794386e53f287307 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* winrt: Remove comment that no longer appliesOliver Wolff2016-08-091-4/+0
| | | | | | | | | Due to recent changes the worker is deleted by the device discovery agent and does no longer handle its own lifetime. Change-Id: I3bd0e4880ab7ee48b900e2b38591c131f468f7a1 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* winrt: Filter devices found by the LE device watcherOliver Wolff2016-08-091-3/+13
| | | | | | | | | It is possible that devices are found by the initial scan and by the device watcher. In this cases the "device found" signal should not be emitted. Change-Id: Ic8aa5a088092adfa8a5b2ea5a3c91350a7897e6a Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* winrt: Connect LE timeout to correct discovery workerOliver Wolff2016-08-091-2/+6
| | | | | | | | | The timer has to be connected to the newly created workers, otherwise the timeout will only be triggered for the first worker that is created. Change-Id: Ifee8bc16f1308e126a47b3c2a88b5a4475f28620 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* winrt: Add mean to choose bluetooth discovery modeOliver Wolff2016-08-091-20/+26
| | | | | Change-Id: I8af49849f6fbe7fc2920a8cb814fa9cf12de392d Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* winrt: Stop LE scan timer when stopping device discoveryOliver Wolff2016-08-091-0/+2
| | | | | Change-Id: Ia639ac6ef3418991390c4aab4732be7ecf14c00e Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* winrt: Start device watcherOliver Wolff2016-08-091-0/+2
| | | | | | | | If the device watcher is not started, it cannot be stopped and an originate error will occur. Change-Id: Ia387cf8ada93d34bee9dcea142492cd2fa650249 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* winrt: Add missing error handling for device discoveryOliver Wolff2016-08-091-3/+8
| | | | | Change-Id: Idbda4faf542baf2fa7ad652cfa90701fb0f9020c Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* winrt: Implement LE device discovery timeoutOliver Wolff2016-08-041-4/+83
| | | | | Change-Id: If6ec32dc3105b3498eef8a20e8f464a85f1ee891 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Merge remote-tracking branch 'gerrit/dev' into btleAlex Blasche2016-07-131-1/+7
| | | | | | | Adds the minimum compile requirements for the new QBluetoothDeviceDiscoveryAgent API. Change-Id: Idfe07bee63de9d2849ab68eb455d0be470591795
* Detection of bluetooth (LE) devices has to happen in Xaml threadOliver Wolff2016-05-261-2/+6
| | | | | Change-Id: Ibfc1b272664b989e9836e02674691f24a53a5231 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* winphone: Added bluetooth device discoveryOliver Wolff2015-09-221-0/+350
Change-Id: I1086ffb05b7a632a9329822c150169a3482c6655 Reviewed-by: Samuel Nevala <samuel.nevala@intopalo.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>