Limb Range Analyzer
Cross-platform application for human limb range analysis.
BluetoothDevice Class Reference

Auxiliary class that represents single Bluetooth device. More...

#include <bluetoothdevice.hpp>

Inheritance diagram for BluetoothDevice:

Signals

void BluetoothDevice_SignalDeviceChanged ()
 Signal that gets emitted when device member properties are modified.
 

Public Member Functions

 BluetoothDevice ()
 Class constructor of BluetoothDevice. More...
 
 BluetoothDevice (const QBluetoothDeviceInfo &device)
 Copy constructor of BluetoothDevice. More...
 
 ~BluetoothDevice ()
 Default BluetoothDevice class destructor. More...
 
void BluetoothDevice_SetDevice (const QBluetoothDeviceInfo &device)
 Setter member function that updates Bluetooth device informations. More...
 
QBluetoothDeviceInfo BluetoothDevice_GetDevice ()
 Getter function for Bluetooth device informations. More...
 
QString BluetoothDevice_GetName () const
 Getter function retrieving device name string. More...
 
QString BluetoothDevice_GetAddress () const
 Getter function retrieving device address. More...
 

Private Attributes

QBluetoothDeviceInfo mDevice
 QBluetoothDeviceInfo, a member object that holds informations about current device.
 

Detailed Description

Auxiliary class that represents single Bluetooth device.

This class is used for encapsulation of Bluetooth device needed properties - its name and address. The object generated through this class description is then used in Bluetooth module.

See also
Bluetooth

Constructor & Destructor Documentation

◆ BluetoothDevice() [1/2]

BluetoothDevice::BluetoothDevice ( )

Class constructor of BluetoothDevice.

Non-parametric default constructor of BluetoothDevice class.

See also
~BluetoothDevice()

◆ BluetoothDevice() [2/2]

BluetoothDevice::BluetoothDevice ( const QBluetoothDeviceInfo &  device)

Copy constructor of BluetoothDevice.

Single parameter class copy constructor.

Parameters
device- parameter that keeps Bluetooth device informations for class member
See also
~BluetoothDevice()

◆ ~BluetoothDevice()

BluetoothDevice::~BluetoothDevice ( )

Default BluetoothDevice class destructor.

Manages base memory cleaning when BluetoothDevice object gets destroyed.

See also
BluetoothDevice(), BluetoothDevice(const QBluetoothDeviceInfo &device)

Member Function Documentation

◆ BluetoothDevice_GetAddress()

QString BluetoothDevice::BluetoothDevice_GetAddress ( ) const

Getter function retrieving device address.

Member function that returns current device's address. Note that in case of macOS operating system, device UUID is returned instead (due to OS-specific functionality requirements).

Returns
QString - text string containing device address

◆ BluetoothDevice_GetDevice()

QBluetoothDeviceInfo BluetoothDevice::BluetoothDevice_GetDevice ( )

Getter function for Bluetooth device informations.

Member function that returns up-to-date Bluetooth device informations member attribute mDevice .

Returns
QBluetoothDeviceInfo - device informations member

◆ BluetoothDevice_GetName()

QString BluetoothDevice::BluetoothDevice_GetName ( ) const

Getter function retrieving device name string.

This function uses mDevice member object function that returns the name of device.

Returns
QString - device name text string

◆ BluetoothDevice_SetDevice()

void BluetoothDevice::BluetoothDevice_SetDevice ( const QBluetoothDeviceInfo &  device)

Setter member function that updates Bluetooth device informations.

Class setter function that modifies BluetoothDevice informations member mDevice and emits singal of device changes through BluetoothDevice_SignalDeviceChanged .

Parameters
device- parameter that keeps Bluetooth device informations for class member

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