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

Auxiliary class that manages Bluetooth characteristics object. More...

#include <bluetoothinfo.hpp>

Inheritance diagram for BluetoothInfo:

Public Member Functions

 BluetoothInfo ()
 Class constructor of BluetoothInfo. More...
 
 BluetoothInfo (const QLowEnergyCharacteristic &characteristic)
 Parametric class copy constructor of BluetoothInfo. More...
 
 ~BluetoothInfo ()
 Default BluetoothInfo destructor. More...
 
void BluetoothInfo_SetCharacteristics (const QLowEnergyCharacteristic &characteristic)
 Setter function that updates mCharacteristic value. More...
 
QLowEnergyCharacteristic Bluetooth_GetCharacteristics () const
 Getter function for Bluetooth service characteristics. More...
 
QString BluetoothInfo_GetUUID () const
 Getter function for converted characteristics UUID. More...
 
QString BluetoothInfo_GetValue () const
 Getter function for characteristics value. More...
 

Private Attributes

QLowEnergyCharacteristic mCharacteristic
 QLowEnergyCharacteristic object that describes Bluetooth Low Energy characteristics.
 

Detailed Description

Auxiliary class that manages Bluetooth characteristics object.

Class BluetoothInfo is used in order to process Bluetooth characteristics contained within a service, thus UUID and respective values are obtained. This class is used alongside BluetoothDevice and BluetoothService as a part of Bluetooth module.

See also
Bluetooth, BluetoothDevice, BluetoothService

Constructor & Destructor Documentation

◆ BluetoothInfo() [1/2]

BluetoothInfo::BluetoothInfo ( )

Class constructor of BluetoothInfo.

Default constructor of BluetoothInfo class with no parameters.

See also
~BluetoothInfo()

◆ BluetoothInfo() [2/2]

BluetoothInfo::BluetoothInfo ( const QLowEnergyCharacteristic &  characteristic)

Parametric class copy constructor of BluetoothInfo.

Copy constructor of class BluetoothInfo that uses parameter-given Bluetooth characteristics object.

See also
~BluetoothInfo()

◆ ~BluetoothInfo()

BluetoothInfo::~BluetoothInfo ( )

Default BluetoothInfo destructor.

Secures memory related operations when object instance gets destoyed.

See also
BluetoothInfo(), BluetoothInfo(const QLowEnergyCharacteristic &characteristic)

Member Function Documentation

◆ Bluetooth_GetCharacteristics()

QLowEnergyCharacteristic BluetoothInfo::Bluetooth_GetCharacteristics ( ) const

Getter function for Bluetooth service characteristics.

This function returns current characteristics included in a previously obtained Bluetooth service.

Returns
QLowEnergyCharacteristic - Bluetooth characteristic object with its respective properties

◆ BluetoothInfo_GetUUID()

QString BluetoothInfo::BluetoothInfo_GetUUID ( ) const

Getter function for converted characteristics UUID.

Getter function that transforms UUID of current characteristics and returns it as a QString without its unnecessary characters.

Returns
QString - Bluetooth characteristics identifier (UUID)

◆ BluetoothInfo_GetValue()

QString BluetoothInfo::BluetoothInfo_GetValue ( ) const

Getter function for characteristics value.

This getter member function receives value of a characteristics, transforms it into hexadecimal output and returns it as a QString . Note that empty read value causes empty string returning.

Returns
QString - characteristics value returned as a hexadecimal text string

◆ BluetoothInfo_SetCharacteristics()

void BluetoothInfo::BluetoothInfo_SetCharacteristics ( const QLowEnergyCharacteristic &  characteristic)

Setter function that updates mCharacteristic value.

This setter function updates QLowEnergyCharacteristic member attribute with the use of given parameter.

Parameters
characteristic- characteristic description parameter meant for Bluetooth service characteristics

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