libsolidcontrol
Solid::Control::Ifaces::BluetoothManager Class Reference
#include <bluetoothmanager.h>

Detailed Description
This class specifies the interface a backend will have to implement in order to be used in the system.A bluetooth manager allow to query the underlying platform to discover the available bluetooth interfaces.
Definition at line 44 of file ifaces/bluetoothmanager.h.
Public Slots | |
virtual void | removeInputDevice (const QString &ubi)=0 |
Signals | |
void | defaultInterfaceChanged (const QString &ubi) |
void | inputDeviceCreated (const QString &ubi) |
void | inputDeviceRemoved (const QString &ubi) |
void | interfaceAdded (const QString &ubi) |
void | interfaceRemoved (const QString &ubi) |
Public Member Functions | |
virtual QStringList | bluetoothInputDevices () const =0 |
virtual QStringList | bluetoothInterfaces () const =0 |
BluetoothManager (QObject *parent=0) | |
virtual QObject * | createBluetoothInputDevice (const QString &ubi)=0 |
virtual QObject * | createInterface (const QString &ubi)=0 |
virtual QString | defaultInterface () const =0 |
virtual Solid::Control::Ifaces::BluetoothSecurity * | security (const QString &interface)=0 |
virtual KJob * | setupInputDevice (const QString &ubi)=0 |
virtual | ~BluetoothManager () |
Constructor & Destructor Documentation
Solid::Control::Ifaces::BluetoothManager::BluetoothManager | ( | QObject * | parent = 0 |
) |
Constructs a BluetoothManager.
- Parameters:
-
parent the parent object
Definition at line 25 of file ifaces/bluetoothmanager.cpp.
Solid::Control::Ifaces::BluetoothManager::~BluetoothManager | ( | ) | [virtual] |
Member Function Documentation
virtual QStringList Solid::Control::Ifaces::BluetoothManager::bluetoothInputDevices | ( | ) | const [pure virtual] |
Retrieves the list of Universal Bluetooth Identifiers (UBIs) of bluetooth input devices which are configured in the system.
Configured means also not connected devices.
- Returns:
- the list of bluetooth input devices configured in this system
Implemented in FakeBluetoothManager.
virtual QStringList Solid::Control::Ifaces::BluetoothManager::bluetoothInterfaces | ( | ) | const [pure virtual] |
Retrieves the list of all the bluetooth interfaces Universal Bluetooth Identifiers (UBIs) in the system.
- Returns:
- the list of bluetooth interfaces available in this system
Implemented in FakeBluetoothManager.
virtual QObject* Solid::Control::Ifaces::BluetoothManager::createBluetoothInputDevice | ( | const QString & | ubi | ) | [pure virtual] |
Instantiates a new BluetoothInputDevice object from this backend given its UBI.
- Parameters:
-
ubi the identifier of the bluetooth input device instantiated
- Returns:
- a new BluetoothInputDevice object if there's a device having the given UBI, 0 otherwise
Implemented in FakeBluetoothManager.
virtual QObject* Solid::Control::Ifaces::BluetoothManager::createInterface | ( | const QString & | ubi | ) | [pure virtual] |
Instantiates a new BluetoothInterface object from this backend given its UBI.
- Parameters:
-
ubi the identifier of the bluetooth interface instantiated
- Returns:
- a new BluetoothInterface object if there's a device having the given UBI, 0 otherwise
Implemented in FakeBluetoothManager.
virtual QString Solid::Control::Ifaces::BluetoothManager::defaultInterface | ( | ) | const [pure virtual] |
Retrieves the default bluetooth interface Universal Bluetooth Identifiers (UBIs) of the system.
- Returns:
- the UBI of the default bluetooth interface
Implemented in FakeBluetoothManager.
void Solid::Control::Ifaces::BluetoothManager::defaultInterfaceChanged | ( | const QString & | ubi | ) | [signal] |
This signal is emitted when the default bluetooth interface changed.
- Parameters:
-
ubi the bluetooth interface identifier
void Solid::Control::Ifaces::BluetoothManager::inputDeviceCreated | ( | const QString & | ubi | ) | [signal] |
This signal is emitted when a new bluetooth input device got configured/created.
- Parameters:
-
ubi the bluetooth input device identifier
void Solid::Control::Ifaces::BluetoothManager::inputDeviceRemoved | ( | const QString & | ubi | ) | [signal] |
This signal is emitted when a bluetooth input device configuration is not available anymore.
- Parameters:
-
ubi the bluetooth input device identifier
void Solid::Control::Ifaces::BluetoothManager::interfaceAdded | ( | const QString & | ubi | ) | [signal] |
This signal is emitted when a new bluetooth interface is available.
- Parameters:
-
ubi the bluetooth interface identifier
void Solid::Control::Ifaces::BluetoothManager::interfaceRemoved | ( | const QString & | ubi | ) | [signal] |
This signal is emitted when a bluetooth interface is not available anymore.
- Parameters:
-
ubi the bluetooth interface identifier
virtual void Solid::Control::Ifaces::BluetoothManager::removeInputDevice | ( | const QString & | ubi | ) | [pure virtual, slot] |
Remove the configuraiton of a bluetooth input device.
- Parameters:
-
ubi the bluetooth input device identifier
Implemented in FakeBluetoothManager.
virtual Solid::Control::Ifaces::BluetoothSecurity* Solid::Control::Ifaces::BluetoothManager::security | ( | const QString & | interface | ) | [pure virtual] |
Gets an instance of BluetoothSecurity to handle pairing/authorization requests.
Implemented in FakeBluetoothManager.
virtual KJob* Solid::Control::Ifaces::BluetoothManager::setupInputDevice | ( | const QString & | ubi | ) | [pure virtual] |
Setup a new bluetooth input device.
- Parameters:
-
ubi the ubi of the bluetooth input device
- Returns:
- job handling of the operation.
Implemented in FakeBluetoothManager.
The documentation for this class was generated from the following files: