Limb Range Analyzer
Cross-platform application for human limb range analysis.
bluetoothdevice.hpp
Go to the documentation of this file.
1
10#ifndef BLUETOOTHDEVICE_HPP
11#define BLUETOOTHDEVICE_HPP
12
13/*Private includes: ---------------------------------------------------------*/
14#include <QObject>
15#include <QBluetoothDeviceInfo>
16#include <QBluetoothAddress>
17#include <QBluetoothUuid>
18#include <QList>
19#include <QString>
20#include <QDebug>
21
22/*Class declaration: --------------------------------------------------------*/
32class BluetoothDevice : public QObject
33{
34 Q_OBJECT
35
36public:
45
56 BluetoothDevice(const QBluetoothDeviceInfo &device);
57
67
80 void BluetoothDevice_SetDevice(const QBluetoothDeviceInfo &device);
81
90 QBluetoothDeviceInfo BluetoothDevice_GetDevice();
91
100 QString BluetoothDevice_GetName() const;
101
113 QString BluetoothDevice_GetAddress() const;
114
115Q_SIGNALS:
122
123private:
129 QBluetoothDeviceInfo mDevice;
130};
131
132#endif // BLUETOOTHDEVICE_HPP
Auxiliary class that represents single Bluetooth device.
Definition: bluetoothdevice.hpp:33
QString BluetoothDevice_GetName() const
Getter function retrieving device name string.
Definition: bluetoothdevice.cpp:24
QBluetoothDeviceInfo BluetoothDevice_GetDevice()
Getter function for Bluetooth device informations.
Definition: bluetoothdevice.cpp:23
BluetoothDevice()
Class constructor of BluetoothDevice.
Definition: bluetoothdevice.cpp:14
~BluetoothDevice()
Default BluetoothDevice class destructor.
Definition: bluetoothdevice.cpp:16
QString BluetoothDevice_GetAddress() const
Getter function retrieving device address.
Definition: bluetoothdevice.cpp:25
void BluetoothDevice_SignalDeviceChanged()
Signal that gets emitted when device member properties are modified.
void BluetoothDevice_SetDevice(const QBluetoothDeviceInfo &device)
Setter member function that updates Bluetooth device informations.
Definition: bluetoothdevice.cpp:18
QBluetoothDeviceInfo mDevice
QBluetoothDeviceInfo, a member object that holds informations about current device.
Definition: bluetoothdevice.hpp:129