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

libsolidcontrol

FakeBluetoothInterface Class Reference

#include <fakebluetoothinterface.h>

Inheritance diagram for FakeBluetoothInterface:

Inheritance graph
[legend]

List of all members.


Public Slots

void cancelDiscovery ()
void discoverDevices ()
void discoverDevicesWithoutNameResolving ()
void removeTrust (const QString &mac)
void setDiscoverableTimeout (int timeout)
void setMinorClass (const QString &minorClass)
void setMode (const Solid::Control::BluetoothInterface::Mode mode)
void setName (const QString &name)
void setPeriodicDiscoveryNameResolving (bool resolving)
void setTrusted (const QString &mac)
void startPeriodicDiscovery ()
void stopPeriodicDiscovery ()

Signals

void bondingCreated (const QString &address)
void bondingRemoved (const QString &address)
void discoverableTimeoutChanged (int timeout)
void discoveryCompleted ()
void discoveryStarted ()
void minorClassChanged (const QString &minor)
void modeChanged (Solid::Control::BluetoothInterface::Mode mode)
void nameChanged (const QString &name)
void remoteDeviceConnected (const QString &address)
void remoteDeviceDisappeared (const QString &ubi)
void remoteDeviceDisconnected (const QString &address)
void remoteDeviceFound (const QString &ubi, int deviceClass, int rssi)
void remoteNameUpdated (const QString &address, const QString &name)
void trustAdded (const QString &address)
void trustRemoved (const QString &address)

Public Member Functions

QString address () const
QStringList bluetoothRemoteDevices () const
QString company () const
QObject * createBluetoothRemoteDevice (const QString &ubi)
int discoverableTimeout () const
 FakeBluetoothInterface (const QMap< QString, QVariant > &propertyMap, QObject *parent=0)
QString getRemoteName (const QString &)
void injectDevice (const QString &, FakeBluetoothRemoteDevice *)
bool isDiscoverable () const
bool isPeriodicDiscoveryActive () const
bool isPeriodicDiscoveryNameResolvingActive () const
bool isTrusted (const QString &mac)
QStringList listAvailableMinorClasses () const
QStringList listBondings () const
QStringList listConnections () const
QStringList listRecentRemoteDevices (const QDateTime &) const
QStringList listRemoteDevices () const
QString majorClass () const
QString manufacturer () const
QString minorClass () const
Solid::Control::BluetoothInterface::Mode mode () const
QString name () const
QString revision () const
QStringList serviceClasses () const
QString ubi () const
QString version () const
virtual ~FakeBluetoothInterface ()

Protected Member Functions

void injectBluetooth (const QString &ubi, FakeBluetoothRemoteDevice *device)

Protected Attributes

QMap< QString,
FakeBluetoothRemoteDevice * > 
mBluetoothRemoteDevices
QMap< QString, QVariant > mPropertyMap

Detailed Description

Definition at line 37 of file fakebluetoothinterface.h.


Constructor & Destructor Documentation

FakeBluetoothInterface::FakeBluetoothInterface ( const QMap< QString, QVariant > &  propertyMap,
QObject *  parent = 0 
)

Definition at line 29 of file fakebluetoothinterface.cpp.

FakeBluetoothInterface::~FakeBluetoothInterface (  )  [virtual]

Definition at line 55 of file fakebluetoothinterface.cpp.


Member Function Documentation

QString FakeBluetoothInterface::address (  )  const [inline]

Definition at line 55 of file fakebluetoothinterface.h.

QStringList FakeBluetoothInterface::bluetoothRemoteDevices (  )  const

Definition at line 76 of file fakebluetoothinterface.cpp.

void FakeBluetoothInterface::bondingCreated ( const QString &  address  )  [signal]

void FakeBluetoothInterface::bondingRemoved ( const QString &  address  )  [signal]

void FakeBluetoothInterface::cancelDiscovery (  )  [inline, slot]

Definition at line 187 of file fakebluetoothinterface.h.

QString FakeBluetoothInterface::company (  )  const [inline]

Definition at line 71 of file fakebluetoothinterface.h.

QObject * FakeBluetoothInterface::createBluetoothRemoteDevice ( const QString &  ubi  )  [virtual]

Set mode of bluetooth interface/adapter.

Valid modes, see mode()

Parameters:
mode the mode of the bluetooth interface/adapter Set discoverable timeout of bluetooth interface/adapter.
timeout timeout in seconds Set minor class of bluetooth interface/adapter.
minor set minor class. Valid mode see listAvaliableMinorClasses() Set name of bluetooth interface/adapter.
name the name of bluetooth interface/adapter Start discovery of remote bluetooth devices with device name resolving. Start discovery of remote bluetooth devices without device name resolving. Cancel discovery of remote bluetooth devices. Start periodic discovery of remote bluetooth devices. See stopPeriodicDiscovery() Stop periodic discovery of remote bluetooth devices. Enable/Disable name resolving of remote bluetooth devices in periodic discovery.
resolveName true to enable name resolving otherwise false Instantiates a new BluetoothRemoteDevice object from this backend given its address.
ubi the identifier of the bluetooth remote device instantiated
Returns:
a new BluetoothRemoteDevice object if there's a device having the given UBI, 0 otherwise

Implements Solid::Control::Ifaces::BluetoothInterface.

Definition at line 65 of file fakebluetoothinterface.cpp.

int FakeBluetoothInterface::discoverableTimeout (  )  const [inline]

Definition at line 79 of file fakebluetoothinterface.h.

void FakeBluetoothInterface::discoverableTimeoutChanged ( int  timeout  )  [signal]

void FakeBluetoothInterface::discoverDevices (  )  [slot]

Definition at line 82 of file fakebluetoothinterface.cpp.

void FakeBluetoothInterface::discoverDevicesWithoutNameResolving (  )  [inline, slot]

Definition at line 185 of file fakebluetoothinterface.h.

void FakeBluetoothInterface::discoveryCompleted (  )  [signal]

void FakeBluetoothInterface::discoveryStarted (  )  [signal]

QString FakeBluetoothInterface::getRemoteName ( const QString &   )  [inline]

Definition at line 111 of file fakebluetoothinterface.h.

void FakeBluetoothInterface::injectBluetooth ( const QString &  ubi,
FakeBluetoothRemoteDevice *  device 
) [protected]

void FakeBluetoothInterface::injectDevice ( const QString &  ubi,
FakeBluetoothRemoteDevice *  device 
)

Definition at line 96 of file fakebluetoothinterface.cpp.

bool FakeBluetoothInterface::isDiscoverable (  )  const [inline]

Definition at line 83 of file fakebluetoothinterface.h.

bool FakeBluetoothInterface::isPeriodicDiscoveryActive (  )  const [inline]

Definition at line 119 of file fakebluetoothinterface.h.

bool FakeBluetoothInterface::isPeriodicDiscoveryNameResolvingActive (  )  const [inline]

Definition at line 123 of file fakebluetoothinterface.h.

bool FakeBluetoothInterface::isTrusted ( const QString &  mac  )  [inline]

Definition at line 135 of file fakebluetoothinterface.h.

QStringList FakeBluetoothInterface::listAvailableMinorClasses (  )  const [inline]

Definition at line 95 of file fakebluetoothinterface.h.

QStringList FakeBluetoothInterface::listBondings (  )  const [inline]

Definition at line 115 of file fakebluetoothinterface.h.

QStringList FakeBluetoothInterface::listConnections (  )  const [inline]

Definition at line 87 of file fakebluetoothinterface.h.

QStringList FakeBluetoothInterface::listRecentRemoteDevices ( const QDateTime &   )  const [inline]

Definition at line 131 of file fakebluetoothinterface.h.

QStringList FakeBluetoothInterface::listRemoteDevices (  )  const [inline]

Definition at line 127 of file fakebluetoothinterface.h.

QString FakeBluetoothInterface::majorClass (  )  const [inline]

Definition at line 91 of file fakebluetoothinterface.h.

QString FakeBluetoothInterface::manufacturer (  )  const [inline]

Definition at line 67 of file fakebluetoothinterface.h.

QString FakeBluetoothInterface::minorClass (  )  const [inline]

Definition at line 99 of file fakebluetoothinterface.h.

void FakeBluetoothInterface::minorClassChanged ( const QString &  minor  )  [signal]

Solid::Control::BluetoothInterface::Mode FakeBluetoothInterface::mode (  )  const [inline]

Definition at line 75 of file fakebluetoothinterface.h.

void FakeBluetoothInterface::modeChanged ( Solid::Control::BluetoothInterface::Mode  mode  )  [signal]

QString FakeBluetoothInterface::name (  )  const [inline]

Definition at line 107 of file fakebluetoothinterface.h.

void FakeBluetoothInterface::nameChanged ( const QString &  name  )  [signal]

void FakeBluetoothInterface::remoteDeviceConnected ( const QString &  address  )  [signal]

void FakeBluetoothInterface::remoteDeviceDisappeared ( const QString &  ubi  )  [signal]

void FakeBluetoothInterface::remoteDeviceDisconnected ( const QString &  address  )  [signal]

void FakeBluetoothInterface::remoteDeviceFound ( const QString &  ubi,
int  deviceClass,
int  rssi 
) [signal]

void FakeBluetoothInterface::remoteNameUpdated ( const QString &  address,
const QString &  name 
) [signal]

void FakeBluetoothInterface::removeTrust ( const QString &  mac  )  [inline, slot]

Definition at line 201 of file fakebluetoothinterface.h.

QString FakeBluetoothInterface::revision (  )  const [inline]

Definition at line 63 of file fakebluetoothinterface.h.

QStringList FakeBluetoothInterface::serviceClasses (  )  const [inline]

Definition at line 103 of file fakebluetoothinterface.h.

void FakeBluetoothInterface::setDiscoverableTimeout ( int  timeout  )  [inline, slot]

Definition at line 172 of file fakebluetoothinterface.h.

void FakeBluetoothInterface::setMinorClass ( const QString &  minorClass  )  [inline, slot]

Definition at line 176 of file fakebluetoothinterface.h.

void FakeBluetoothInterface::setMode ( const Solid::Control::BluetoothInterface::Mode  mode  )  [inline, slot]

Definition at line 168 of file fakebluetoothinterface.h.

void FakeBluetoothInterface::setName ( const QString &  name  )  [inline, slot]

Definition at line 180 of file fakebluetoothinterface.h.

void FakeBluetoothInterface::setPeriodicDiscoveryNameResolving ( bool  resolving  )  [inline, slot]

Definition at line 193 of file fakebluetoothinterface.h.

void FakeBluetoothInterface::setTrusted ( const QString &  mac  )  [inline, slot]

Definition at line 197 of file fakebluetoothinterface.h.

void FakeBluetoothInterface::startPeriodicDiscovery (  )  [inline, slot]

Definition at line 189 of file fakebluetoothinterface.h.

void FakeBluetoothInterface::stopPeriodicDiscovery (  )  [inline, slot]

Definition at line 191 of file fakebluetoothinterface.h.

void FakeBluetoothInterface::trustAdded ( const QString &  address  )  [signal]

void FakeBluetoothInterface::trustRemoved ( const QString &  address  )  [signal]

QString FakeBluetoothInterface::ubi (  )  const [inline, virtual]

Retrieves the Universal Bluetooth Identifier (UBI) of the BluetoothInterface.

This identifier is unique for each bluetooth remote device and bluetooth interface in the system.

Returns:
the Universal Bluetooth Identifier of the current bluetooth interface

Implements Solid::Control::Ifaces::BluetoothInterface.

Definition at line 50 of file fakebluetoothinterface.h.

QString FakeBluetoothInterface::version (  )  const [inline]

Definition at line 59 of file fakebluetoothinterface.h.


Member Data Documentation

QMap<QString, FakeBluetoothRemoteDevice *> FakeBluetoothInterface::mBluetoothRemoteDevices [protected]

Definition at line 227 of file fakebluetoothinterface.h.

QMap<QString, QVariant> FakeBluetoothInterface::mPropertyMap [protected]

Definition at line 228 of file fakebluetoothinterface.h.


The documentation for this class was generated from the following files:
  • fakebluetoothinterface.h
  • fakebluetoothinterface.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
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
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