move files across computers

This commit is contained in:
Kavish Devar
2025-01-25 03:12:23 +05:30
parent a6d7bd704a
commit 5d364a662c
22 changed files with 714 additions and 321 deletions

23
linux/BluetoothHandler.h Normal file
View 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;
};