Hospital Analyser  1.0
Signals | Public Member Functions | Properties | List of all members
DeviceInfo Class Reference

The DeviceInfo class Provides information about discovered slave device. More...

#include <deviceinfo.h>

Inheritance diagram for DeviceInfo:

Signals

void deviceChanged ()
 deviceChanged
 

Public Member Functions

 DeviceInfo (const QBluetoothDeviceInfo &info)
 DeviceInfo::DeviceInfo Class constructor. More...
 
void setDevice (const QBluetoothDeviceInfo &device)
 DeviceInfo::setDevice Sets just found device as class variable to be able to get its address and name. More...
 
QString getName () const
 DeviceInfo::getName Manges deviceName property and provides device name to UI. More...
 
QString getAddress () const
 DeviceInfo::getAddress Manages deviceName property and provides device address to UI. More...
 
QBluetoothDeviceInfo getDevice () const
 DeviceInfo::getDevice Getter of private variable. More...
 

Properties

QString deviceName
 
QString deviceAddress
 

Detailed Description

The DeviceInfo class Provides information about discovered slave device.

Constructor & Destructor Documentation

◆ DeviceInfo()

DeviceInfo::DeviceInfo ( const QBluetoothDeviceInfo &  info)

DeviceInfo::DeviceInfo Class constructor.

Parameters
infoReference to QBluetoothDeviceInfo variable

Member Function Documentation

◆ getAddress()

QString DeviceInfo::getAddress ( ) const

DeviceInfo::getAddress Manages deviceName property and provides device address to UI.

Returns
MAC address in string form

◆ getDevice()

QBluetoothDeviceInfo DeviceInfo::getDevice ( ) const

DeviceInfo::getDevice Getter of private variable.

Returns
QBluetoothDeviceInfo variable

◆ getName()

QString DeviceInfo::getName ( ) const

DeviceInfo::getName Manges deviceName property and provides device name to UI.

Returns
Device name

◆ setDevice()

void DeviceInfo::setDevice ( const QBluetoothDeviceInfo &  device)

DeviceInfo::setDevice Sets just found device as class variable to be able to get its address and name.

Parameters
deviceReference to found device

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