Hospital Analyser  1.0
Public Slots | Signals | Public Member Functions | Properties | List of all members
BluetoothDeviceFinder Class Reference

The BluetoothDeviceFinder class manages Bluetooth LE device scanning, notifes UI and provides list of discovered devices. More...

#include <bluetoothdevicefinder.h>

Inheritance diagram for BluetoothDeviceFinder:

Public Slots

void startSearch ()
 BluetoothDeviceFinder::startSearch This method handles event when user clicks on start search button.
 
void connectToDevice (const QString &address)
 BluetoothDeviceFinder::connectToDevice Finds device in device list using MAC address and sets device for measurement. More...
 
void clearDevices ()
 BluetoothDeviceFinder::clearDevices Clears device list for new scanning event.
 

Signals

void scanningChanged ()
 scanningChanged Emits signal when state of scanning changes
 
void devicesChanged ()
 devicesChanged Emits signal when new device was added or device list was cleared
 

Public Member Functions

 BluetoothDeviceFinder (DeviceMeasurementManager *manager, QObject *parent=0)
 BluetoothDeviceFinder::BluetoothDeviceFinder Class constructor. More...
 
 ~BluetoothDeviceFinder ()
 BluetoothDeviceFinder::~BluetoothDeviceFinder Class destructor.
 
bool isScanning () const
 isScanning Method manages isScanning property More...
 
QVariant getDevices ()
 getDevices Method manages getDevices property More...
 

Properties

bool isScanning
 BluetoothDeviceFinder::isScanning Property used in UI to detect scanning activity. More...
 
QVariant getDevices
 BluetoothDeviceFinder::getDevices Property used in UI to display found devices. More...
 

Detailed Description

The BluetoothDeviceFinder class manages Bluetooth LE device scanning, notifes UI and provides list of discovered devices.

Constructor & Destructor Documentation

◆ BluetoothDeviceFinder()

BluetoothDeviceFinder::BluetoothDeviceFinder ( DeviceMeasurementManager manager,
QObject *  parent = 0 
)

BluetoothDeviceFinder::BluetoothDeviceFinder Class constructor.

Parameters
managerPointer to DeviceMeasurementManager class, which is used to connect to selected device
parentQObject parent

Member Function Documentation

◆ connectToDevice

void BluetoothDeviceFinder::connectToDevice ( const QString &  address)
slot

BluetoothDeviceFinder::connectToDevice Finds device in device list using MAC address and sets device for measurement.

Parameters
addressMAC address passed from UI

◆ getDevices()

QVariant BluetoothDeviceFinder::getDevices ( )

getDevices Method manages getDevices property

Returns
List of all devices found while scanning

◆ isScanning()

bool BluetoothDeviceFinder::isScanning ( ) const

isScanning Method manages isScanning property

Returns
True if scan is active else returns False

Property Documentation

◆ getDevices

QVariant BluetoothDeviceFinder::getDevices
read

BluetoothDeviceFinder::getDevices Property used in UI to display found devices.

Returns
List of type QVariant containing discovered devices

◆ isScanning

bool BluetoothDeviceFinder::isScanning
read

BluetoothDeviceFinder::isScanning Property used in UI to detect scanning activity.

Returns
True if scan is active else returns False

The documentation for this class was generated from the following files: