summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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>
* 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>