• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libsolidcontrol

Solid::Control::BluetoothManager

Solid::Control::BluetoothManager Class Reference

#include <bluetoothmanager.h>

Inheritance diagram for Solid::Control::BluetoothManager:

Inheritance graph
[legend]

List of all members.


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 59 of file bluetoothmanager.h.


Public Slots

void removeInputDevice (const QString &ubi)

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

BluetoothInputDeviceList bluetoothInputDevices () const
BluetoothInterfaceList bluetoothInterfaces () const
BluetoothInputDevice * createBluetoothInputDevice (const QString &ubi)
QString defaultInterface () const
BluetoothInputDevice findBluetoothInputDevice (const QString &ubi) const
BluetoothInterface findBluetoothInterface (const QString &ubi) const
BluetoothSecurity * security (const QString &interface=QString())
KJob * setupInputDevice (const QString &ubi)

Member Function Documentation

Solid::Control::BluetoothInputDeviceList Solid::Control::BluetoothManager::bluetoothInputDevices (  )  const

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

Definition at line 190 of file bluetoothmanager.cpp.

Solid::Control::BluetoothInterfaceList Solid::Control::BluetoothManager::bluetoothInterfaces (  )  const

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

Definition at line 122 of file bluetoothmanager.cpp.

Solid::Control::BluetoothInputDevice * Solid::Control::BluetoothManager::createBluetoothInputDevice ( const QString &  ubi  ) 

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

Definition at line 168 of file bluetoothmanager.cpp.

QString Solid::Control::BluetoothManager::defaultInterface (  )  const

Retrieves the default bluetooth interface Universal Bluetooth Identifiers (UBIs) of the system.

Returns:
the UBI of the default bluetooth interface

Definition at line 133 of file bluetoothmanager.cpp.

void Solid::Control::BluetoothManager::defaultInterfaceChanged ( const QString &  ubi  )  [signal]

This signal is emitted when the default bluetooth interface changed.

Parameters:
ubi the bluetooth interface identifier

Solid::Control::BluetoothInputDevice Solid::Control::BluetoothManager::findBluetoothInputDevice ( const QString &  ubi  )  const

Find a new BluetoothInputDevice object given its UBI.

Parameters:
ubi the identifier of the bluetooth input device to find
Returns:
a valid BlueoothInputDevice object if there's a device having the given UBI, an invalid one otherwise

Definition at line 153 of file bluetoothmanager.cpp.

Solid::Control::BluetoothInterface Solid::Control::BluetoothManager::findBluetoothInterface ( const QString &  ubi  )  const

Find a new BluetoothInterface object given its UBI.

Parameters:
ubi the identifier of the bluetooth interface to find
Returns:
a valid BlueoothInterface object if there's a device having the given UBI, an invalid one otherwise

Definition at line 138 of file bluetoothmanager.cpp.

void Solid::Control::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::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::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::BluetoothManager::interfaceRemoved ( const QString &  ubi  )  [signal]

This signal is emitted when a bluetooth interface is not available anymore.

Parameters:
ubi the bluetooth interface identifier

void Solid::Control::BluetoothManager::removeInputDevice ( const QString &  ubi  )  [slot]

Remove the configuraiton of a bluetooth input device.

Parameters:
ubi the bluetooth input device identifier

Definition at line 219 of file bluetoothmanager.cpp.

Solid::Control::BluetoothSecurity * Solid::Control::BluetoothManager::security ( const QString &  interface = QString()  ) 

Gets an instance of BluetoothSecurity to handle pairing/authorization requests.

Definition at line 209 of file bluetoothmanager.cpp.

KJob * Solid::Control::BluetoothManager::setupInputDevice ( const QString &  ubi  ) 

Setup a new bluetooth input device.

Parameters:
ubi the ubi of the bluetooth input device
Returns:
the job handling of the operation.

Definition at line 185 of file bluetoothmanager.cpp.


The documentation for this class was generated from the following files:
  • bluetoothmanager.h
  • bluetoothmanager.cpp

libsolidcontrol

Skip menu "libsolidcontrol"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal