|
libbluedevil v1.8
|
#include <bluedevil/bluedevilmanager.h>
Signals | |
| void | adapterAdded (Adapter *adapter) |
| void | adapterRemoved (Adapter *adapter) |
| void | defaultAdapterChanged (Adapter *adapter) |
| void | usableAdapterChanged (Adapter *adapter) |
| void | allAdaptersRemoved () |
Public Member Functions | |
| virtual | ~Manager () |
| Adapter * | defaultAdapter () |
| Adapter * | usableAdapter () const |
| QList< Adapter * > | adapters () const |
| bool | isBluetoothOperational () const |
Static Public Member Functions | |
| static Manager * | self () |
| static void | release () |
Properties | |
| Manager | self |
| Adapter | defaultAdapter |
| QList< Adapter * > | adapters |
| bool | isBluetoothOperational |
Manager class. The entry point to BlueDevil exposed services.
The typical way to proceed is to work with the default adapter, but you can also list all bluetooth adapters and work with the one you want.
The interface is a singleton with release-when-you-want capability.
All adapters and devices are created by BlueDevil, and the ownership is always of BlueDevil.
| BlueDevil::Manager::~Manager | ( | ) | [virtual] |
| void BlueDevil::Manager::adapterAdded | ( | Adapter * | adapter | ) | [signal] |
This signal will be emitted when an adapter has been connected.
| void BlueDevil::Manager::adapterRemoved | ( | Adapter * | adapter | ) | [signal] |
This signal will be emitted when an adapter has been disconnected.
| void BlueDevil::Manager::allAdaptersRemoved | ( | ) | [signal] |
This signal will be emitted when all adapters have been disconnected.
| Adapter* BlueDevil::Manager::defaultAdapter | ( | ) |
| void BlueDevil::Manager::defaultAdapterChanged | ( | Adapter * | adapter | ) | [signal] |
This signal will be emitted when the default adapter has changed. It also will be emitted when all adapters have been removed, placing 0 at adapter.
| bool BlueDevil::Manager::isBluetoothOperational | ( | ) | const |
| void BlueDevil::Manager::release | ( | ) | [static] |
When you consider you have finished working with BlueDevil you can immediatly release the memory by calling this method. It will automatically delete all Adapters and Devices that were still on memory.
| Adapter * BlueDevil::Manager::usableAdapter | ( | ) | const |
| void BlueDevil::Manager::usableAdapterChanged | ( | Adapter * | adapter | ) | [signal] |
This signal will be emitted when the current usable adapter has changed. This basically means two cases:
If any of those cases happen, and it was possible to find a usable adapter, this signal will report the new adapter. If no usable adapter could be found, 0 will be placed at adapter.
Adapter * BlueDevil::Manager::defaultAdapter [read] |
bool BlueDevil::Manager::isBluetoothOperational [read] |
Manager * BlueDevil::Manager::self [read] |
1.7.3