Limb Range Analyzer
Cross-platform application for human limb range analysis.
bluetoothinfo.hpp
Go to the documentation of this file.
1
10#ifndef BLUETOOTHINFO_HPP
11#define BLUETOOTHINFO_HPP
12
13/*Private includes: ---------------------------------------------------------*/
14#include <QObject>
15#include <QtBluetooth/QLowEnergyCharacteristic>
16#include <QString>
17
18/*Class declaration: --------------------------------------------------------*/
29class BluetoothInfo : public QObject
30{
31 Q_OBJECT
32
33public:
43
52 BluetoothInfo(const QLowEnergyCharacteristic &characteristic);
53
63
74 void BluetoothInfo_SetCharacteristics(const QLowEnergyCharacteristic &characteristic);
75
85 QLowEnergyCharacteristic Bluetooth_GetCharacteristics() const;
86
95 QString BluetoothInfo_GetUUID() const;
96
106 QString BluetoothInfo_GetValue() const;
107
108private:
114 QLowEnergyCharacteristic mCharacteristic;
115};
116
117#endif // BLUETOOTHINFO_HPP
Auxiliary class that manages Bluetooth characteristics object.
Definition: bluetoothinfo.hpp:30
BluetoothInfo()
Class constructor of BluetoothInfo.
Definition: bluetoothinfo.cpp:14
QLowEnergyCharacteristic mCharacteristic
QLowEnergyCharacteristic object that describes Bluetooth Low Energy characteristics.
Definition: bluetoothinfo.hpp:114
QString BluetoothInfo_GetUUID() const
Getter function for converted characteristics UUID.
Definition: bluetoothinfo.cpp:21
~BluetoothInfo()
Default BluetoothInfo destructor.
Definition: bluetoothinfo.cpp:16
void BluetoothInfo_SetCharacteristics(const QLowEnergyCharacteristic &characteristic)
Setter function that updates mCharacteristic value.
Definition: bluetoothinfo.cpp:18
QString BluetoothInfo_GetValue() const
Getter function for characteristics value.
Definition: bluetoothinfo.cpp:34
QLowEnergyCharacteristic Bluetooth_GetCharacteristics() const
Getter function for Bluetooth service characteristics.
Definition: bluetoothinfo.cpp:19