Newer
Older
GigAnon
committed
#ifndef BLUETOOTHMANAGEMENTWIDGET_H
#define BLUETOOTHMANAGEMENTWIDGET_H
GigAnon
committed
class BluetoothProxy;
GigAnon
committed
class QPushButton;
class QLineEdit;
GigAnon
committed
class BluetoothManagementWidget: public SerialManagementWidget
GigAnon
committed
{
public:
BluetoothManagementWidget(BluetoothProxy *bluetoothProxy = nullptr, QWidget *parent = nullptr);
GigAnon
committed
GigAnon
committed
private:
void checkBluetoothAvailability();
void checkConnectionStatus();
void deviceDiscovered(const QString& name, const QString& address);
void on_connectButton_clicked();
void changeUUID(const QString& uuid);
// Find a device in the list by its address.
// Returns -1 if none is found
int findDeviceByAddress(const QString& address);
// Qt::ItemDataRole index for device address
// (allow for the stored data to be different from the display)
const int ADDRESS_DATA_INDEX = (Qt::UserRole+10);
GigAnon
committed
QPushButton* m_scanButton;
QPushButton* m_checkBluetoothButton;
QPushButton* m_connectButton;
QLabel* m_bluetoothAvLabel;
QLabel* m_connectionLabel;
QLineEdit* m_UUIDInput;