TinyB  0.5.1
TinyB - The Tiny Bluetooth LE library
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Friends | List of all members
tinyb::BluetoothGattService Class Reference

#include <BluetoothGattService.hpp>

Inheritance diagram for tinyb::BluetoothGattService:
tinyb::BluetoothObject

Public Member Functions

virtual std::string get_java_class () const
 
virtual std::string get_class_name () const
 
virtual std::string get_object_path () const
 
virtual BluetoothType get_bluetooth_type () const
 
 BluetoothGattService (const BluetoothGattService &object)
 
virtual BluetoothGattServiceclone () const
 
std::unique_ptr< BluetoothGattCharacteristicfind (std::string *identifier, std::chrono::milliseconds timeout=std::chrono::milliseconds::zero())
 
std::string get_uuid ()
 
BluetoothDevice get_device ()
 
bool get_primary ()
 
std::vector< std::unique_ptr< BluetoothGattCharacteristic > > get_characteristics ()
 
- Public Member Functions inherited from tinyb::BluetoothObject
virtual bool operator== (const BluetoothObject &other) const
 
virtual bool operator!= (const BluetoothObject &other) const
 

Static Public Member Functions

static std::string java_class ()
 
static BluetoothType class_type ()
 
- Static Public Member Functions inherited from tinyb::BluetoothObject
static BluetoothType class_type ()
 
static std::string java_class ()
 

Protected Member Functions

 BluetoothGattService (GattService1 *object)
 
- Protected Member Functions inherited from tinyb::BluetoothObject
bool lock ()
 
void unlock ()
 

Static Protected Member Functions

static std::unique_ptr< BluetoothGattServicemake (Object *object, BluetoothType type=BluetoothType::GATT_SERVICE, std::string *name=nullptr, std::string *identifier=nullptr, BluetoothObject *parent=nullptr)
 

Friends

class tinyb::BluetoothManager
 
class tinyb::BluetoothEventManager
 
class tinyb::BluetoothDevice
 
class tinyb::BluetoothGattCharacteristic
 

Additional Inherited Members

- Protected Attributes inherited from tinyb::BluetoothObject
std::mutex lk
 
std::atomic_bool valid
 

Detailed Description

Provides access to Bluetooth GATT characteristic. Follows the BlueZ adapter API available at: http://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/gatt-api.txt

Member Function Documentation

virtual BluetoothGattService* tinyb::BluetoothGattService::clone ( ) const
virtual

Returns a raw pointer to a clone of the object

Returns
A raw pointer to a clone of the object

Reimplemented from tinyb::BluetoothObject.

virtual BluetoothType tinyb::BluetoothGattService::get_bluetooth_type ( ) const
virtual

Returns the BluetoothType of this object

Returns
The BluetoothType of this object

Reimplemented from tinyb::BluetoothObject.

std::vector<std::unique_ptr<BluetoothGattCharacteristic> > tinyb::BluetoothGattService::get_characteristics ( )

Returns a list of BluetoothGattCharacteristics this service exposes.

Returns
A list of BluetoothGattCharacteristics exposed by this service
virtual std::string tinyb::BluetoothGattService::get_class_name ( ) const
virtual

Returns the class name of this object

Returns
A std::string containing the class name of this object

Reimplemented from tinyb::BluetoothObject.

BluetoothDevice tinyb::BluetoothGattService::get_device ( )

Returns the device to which this service belongs to.

Returns
The device.
virtual std::string tinyb::BluetoothGattService::get_java_class ( ) const
virtual

Returns the complete Java class of this object

Returns
A std::string containing the java class of this object

Reimplemented from tinyb::BluetoothObject.

virtual std::string tinyb::BluetoothGattService::get_object_path ( ) const
virtual

Returns the DBus object path of this object

Returns
A std::string containing the DBus object path of this object

Reimplemented from tinyb::BluetoothObject.

bool tinyb::BluetoothGattService::get_primary ( )

Returns true if this service is a primary service, false if secondary.

Returns
true if this service is a primary service, false if secondary.
std::string tinyb::BluetoothGattService::get_uuid ( )

Get the UUID of this service

Returns
The 128 byte UUID of this service, NULL if an error occurred

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