![]() |
Limb Range Analyzer
Cross-platform application for human limb range analysis.
|
Auxiliary class that manages Bluetooth characteristics object. More...
#include <bluetoothinfo.hpp>
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. | |
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.
| BluetoothInfo::BluetoothInfo | ( | ) |
Class constructor of BluetoothInfo.
Default constructor of BluetoothInfo class with no parameters.
| BluetoothInfo::BluetoothInfo | ( | const QLowEnergyCharacteristic & | characteristic | ) |
Parametric class copy constructor of BluetoothInfo.
Copy constructor of class BluetoothInfo that uses parameter-given Bluetooth characteristics object.
| BluetoothInfo::~BluetoothInfo | ( | ) |
Default BluetoothInfo destructor.
Secures memory related operations when object instance gets destoyed.
| QLowEnergyCharacteristic BluetoothInfo::Bluetooth_GetCharacteristics | ( | ) | const |
| 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.
| 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.
| 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.
| characteristic | - characteristic description parameter meant for Bluetooth service characteristics |