mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-01-28 22:01:50 +00:00
[Linux] Start/Stop BLE scan when going to sleep
This commit is contained in:
committed by
Tim Gromeyer
parent
05c0a7c88b
commit
fb3c8c73a4
@@ -112,6 +112,11 @@ void BleManager::stopScan()
|
||||
discoveryAgent->stop();
|
||||
}
|
||||
|
||||
bool BleManager::isScanning() const
|
||||
{
|
||||
return discoveryAgent->isActive();
|
||||
}
|
||||
|
||||
void BleManager::onDeviceDiscovered(const QBluetoothDeviceInfo &info)
|
||||
{
|
||||
// Check for Apple's manufacturer ID (0x004C)
|
||||
|
||||
@@ -72,6 +72,7 @@ public:
|
||||
|
||||
void startScan();
|
||||
void stopScan();
|
||||
bool isScanning() const;
|
||||
|
||||
private slots:
|
||||
void onDeviceDiscovered(const QBluetoothDeviceInfo &info);
|
||||
|
||||
Reference in New Issue
Block a user