mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-02-17 06:38:13 +00:00
move files across computers
This commit is contained in:
23
linux/BluetoothHandler.h
Normal file
23
linux/BluetoothHandler.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <QBluetoothDeviceInfo>
|
||||
#include <QBluetoothSocket>
|
||||
#include <QBluetoothDeviceDiscoveryAgent>
|
||||
|
||||
class BluetoothHandler : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
BluetoothHandler();
|
||||
void connectToDevice(const QBluetoothDeviceInfo &device);
|
||||
void parseData(const QByteArray &data);
|
||||
|
||||
signals:
|
||||
void noiseControlModeChanged(int mode);
|
||||
void earDetectionStatusChanged(const QString &status);
|
||||
void batteryStatusChanged(const QString &status);
|
||||
|
||||
private:
|
||||
QBluetoothSocket *socket = nullptr;
|
||||
QBluetoothDeviceDiscoveryAgent *discoveryAgent;
|
||||
};
|
||||
Reference in New Issue
Block a user