BluezQt 5.109.0
Public Member Functions | Protected Member Functions | List of all members
BluezQt::GattService

Bluetooth GattService. More...

#include <BluezQt/GattService>

Public Member Functions

 GattService (const QString &uuid, bool isPrimary, GattApplication *parent)
 Creates a new GattService object.
 
 ~GattService () override
 Destroys a GattService object.
 
bool isPrimary () const
 Indicates whether or not this GATT service is a primary service.
 
QString uuid () const
 128-bit service UUID.
 

Protected Member Functions

virtual QDBusObjectPath objectPath () const
 D-Bus object path of the GattService.
 

Detailed Description

Bluetooth GattService.

Bluetooth LE GATT service.

This class represents a Bluetooth GattService.

This class represents a Bluetooth LE GATT service.

Constructor & Destructor Documentation

◆ GattService()

BluezQt::GattService::GattService ( const QString &  uuid,
bool  isPrimary,
GattApplication parent 
)
explicit

Creates a new GattService object.

Parameters
parent

◆ ~GattService()

BluezQt::GattService::~GattService ( )
override

Destroys a GattService object.

Member Function Documentation

◆ isPrimary()

bool BluezQt::GattService::isPrimary ( ) const

Indicates whether or not this GATT service is a primary service.

If false, the service is secondary.

Returns
true if gatt service is primary

◆ objectPath()

virtual QDBusObjectPath BluezQt::GattService::objectPath ( ) const
protectedvirtual

D-Bus object path of the GattService.

The path where the GattService will be registered.

Note
You must provide valid object path!
Returns
object path of GattService

◆ uuid()

QString BluezQt::GattService::uuid ( ) const

128-bit service UUID.

Returns
uuid of gatt service