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

Auxiliary class that is used alongside Bluetooth class when describing a service. More...

#include <bluetoothservice.hpp>

Inheritance diagram for BluetoothService:

Public Member Functions

 BluetoothService ()
 BluetoothService class default constructor. More...
 
 BluetoothService (QLowEnergyService *service)
 BluetoothService class copy constructor. More...
 
 ~BluetoothService ()
 Default BluetoothService class destructor. More...
 
QLowEnergyService * BluetoothService_GetService () const
 Class defined service member getter function. More...
 
QString BluetoothService_GetUUID ()
 This member function returns service UUID string. More...
 

Private Attributes

QLowEnergyService * mService
 QLowEnergyService object that maintains Bluetooth service informations.
 

Detailed Description

Auxiliary class that is used alongside Bluetooth class when describing a service.

BluetoothService helps recognise Bluetooth services and their properties, of which their UUID is important for Limb Range Analyzer application. This class is an aggregated component used alongside Bluetooth module.

See also
Bluetooth

Constructor & Destructor Documentation

◆ BluetoothService() [1/2]

BluetoothService::BluetoothService ( )

BluetoothService class default constructor.

This function represents default constructor of class BluetoothService.

See also
~BluetoothService()

◆ BluetoothService() [2/2]

BluetoothService::BluetoothService ( QLowEnergyService *  service)

BluetoothService class copy constructor.

A parametric constructor function for BluetoothService, which sets mService member attribute according to received parameter.

Parameters
service- service object used for BluetoothService instance creation
See also
~BluetoothService()

◆ ~BluetoothService()

BluetoothService::~BluetoothService ( )

Default BluetoothService class destructor.

Function describing default class destructor.

See also
BluetoothService(), BluetoothService(QLowEnergyService *service)

Member Function Documentation

◆ BluetoothService_GetService()

QLowEnergyService * BluetoothService::BluetoothService_GetService ( ) const

Class defined service member getter function.

This member function returns mService member.

Returns
QLowEnergyService - maintaned service member object

◆ BluetoothService_GetUUID()

QString BluetoothService::BluetoothService_GetUUID ( )

This member function returns service UUID string.

Member function that verifies the existence of mService object and then converts its UUID, so that it can be returned as a hexadecimal string. Unnecessary characters are omitted.

Returns
QString - text string with service UUID description

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