libbluedevil is a Qt-based library, written in C++ that makes it very easy and straight-forward to handle almost all Bluetooth related operations. It consists of several key classes, following:
- Manager
- Entry point to the library functionality. It is a singleton class, and it basically gives you access to the connected adapters. It will also inform through its signals when new adapters have been connected, removed, or when the default adapter has changed.
- Adapter
- It gives you all kind of information (and also a way to modify it) about an adapter. With this class you can start scanning for remote devices, and being notified through its signals when new devices have been found. Here you can also retrieve devices given that you know their hardware address (MAC) or their UBI, both being unique for each device.
- Device
- With this class you are given information about a particular remote device. You can also set certain properties like whether the device is trusted, blocked, or provide an alias for it.
- Utils
- Contains general usage routines.
All the libbluedevil classes are wrapped into a namespace called BlueDevil.
You can have a look at some Examples.