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

libsolidcontrol

FakeBluetoothRemoteDevice Class Reference

#include <fakebluetoothremotedevice.h>

Inheritance diagram for FakeBluetoothRemoteDevice:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 33 of file fakebluetoothremotedevice.h.


Public Slots

void cancelBondingProcess ()
void clearAlias ()
void disconnect ()
void removeBonding ()
void serviceHandles (const QString &) const
void serviceRecordAsXml (uint) const
void setAlias (const QString &alias)

Signals

void aliasChanged (const QString &alias)
void aliasCleared ()
void bondingCreated ()
void bondingRemoved ()
void classChanged (uint devClass)
void connected ()
void disconnected ()
void nameChanged (const QString &name)
void nameResolvingFailed ()
void requestDisconnection ()
void serviceHandlesAvailable (const QString &ubi, const QList< uint > &handles)
void serviceRecordXmlAvailable (const QString &ubi, const QString &record)

Public Member Functions

QString address () const
QString alias () const
QString company () const
KJob * createBonding ()
int encryptionKeySize () const
 FakeBluetoothRemoteDevice (const QMap< QString, QVariant > &propertyMap, QObject *parent=0)
bool hasBonding () const
bool isConnected () const
QString lastSeen () const
QString lastUsed () const
QString majorClass () const
QString manufacturer () const
QString minorClass () const
QString name () const
int pinCodeLength () const
QString revision () const
QStringList serviceClasses () const
QString ubi () const
QString version () const
virtual ~FakeBluetoothRemoteDevice ()

Protected Attributes

QMap< QString, QVariant > mPropertyMap

Constructor & Destructor Documentation

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

Definition at line 29 of file fakebluetoothremotedevice.cpp.

FakeBluetoothRemoteDevice::~FakeBluetoothRemoteDevice (  )  [virtual]

Definition at line 56 of file fakebluetoothremotedevice.cpp.


Member Function Documentation

QString FakeBluetoothRemoteDevice::address (  )  const [inline, virtual]

Retrieves MAC address of the bluetooth remote device.

Returns:
MAC address of remote device.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 45 of file fakebluetoothremotedevice.h.

QString FakeBluetoothRemoteDevice::alias (  )  const [inline, virtual]

Retrieves alias of remote device.

This is a local alias name for the remote device. If this string is empty the frontend should should use name(). This is handy if someone is using several bluetooth remote device with the same name. alias() should be preferred used by the frontend. Example: "Company mobile"

local alias of remote device.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 85 of file fakebluetoothremotedevice.h.

void FakeBluetoothRemoteDevice::aliasChanged ( const QString &  alias  )  [virtual, signal]

Alias has been changed of remote device.

alias the alias of the remote device

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

void FakeBluetoothRemoteDevice::aliasCleared (  )  [virtual, signal]

Alias got cleared of remote device.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

void FakeBluetoothRemoteDevice::bondingCreated (  )  [virtual, signal]

Bonding with remote device has been created.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

void FakeBluetoothRemoteDevice::bondingRemoved (  )  [virtual, signal]

Bonding has been removed of remote device.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

void FakeBluetoothRemoteDevice::cancelBondingProcess (  )  [inline, virtual, slot]

Cancel bonding process of remote device.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 144 of file fakebluetoothremotedevice.h.

void FakeBluetoothRemoteDevice::classChanged ( uint  deviceClass  )  [virtual, signal]

Class has been changed of remote device.

deviceClass the device class of the remote device

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

void FakeBluetoothRemoteDevice::clearAlias (  )  [inline, virtual, slot]

Clear alias for remote device.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 136 of file fakebluetoothremotedevice.h.

QString FakeBluetoothRemoteDevice::company (  )  const [inline, virtual]

Retrieves the manufacturer of the bluetooth chip of the remote device.

Returns:
company string of the bluetooth chip.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 65 of file fakebluetoothremotedevice.h.

void FakeBluetoothRemoteDevice::connected (  )  [virtual, signal]

Remote device has been connected.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

KJob * FakeBluetoothRemoteDevice::createBonding (  )  [virtual]

Create bonding ("pairing") with remote device.

Returns:
the job handling of the operation.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 60 of file fakebluetoothremotedevice.cpp.

void FakeBluetoothRemoteDevice::disconnect (  )  [inline, virtual, slot]

Disconnect remote device.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 140 of file fakebluetoothremotedevice.h.

void FakeBluetoothRemoteDevice::disconnected (  )  [virtual, signal]

Remote device has been disconnected.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

int FakeBluetoothRemoteDevice::encryptionKeySize (  )  const [inline, virtual]

Retrieves currently used encryption key size of remote device.

Returns:
encryption key size.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 105 of file fakebluetoothremotedevice.h.

bool FakeBluetoothRemoteDevice::hasBonding (  )  const [inline, virtual]

Retrieves true if remote device has bonding.

Returns:
true if remote device has bonding.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 97 of file fakebluetoothremotedevice.h.

bool FakeBluetoothRemoteDevice::isConnected (  )  const [inline, virtual]

Retrieves true if remote device is connected.

Returns:
true if remote bluetooth device is connected otherwise false.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 49 of file fakebluetoothremotedevice.h.

QString FakeBluetoothRemoteDevice::lastSeen (  )  const [inline, virtual]

Retrieves the date and time when the remote device has been seen.

Example: "2007-03-20 22:14:00 GMT"

Returns:
date and time when the remote device has been seen.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 89 of file fakebluetoothremotedevice.h.

QString FakeBluetoothRemoteDevice::lastUsed (  )  const [inline, virtual]

Retrieves the date and time when the remote device has been used.

Example: "2007-03-20 22:14:00 GMT"

Returns:
date and time when the remote device has been used.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 93 of file fakebluetoothremotedevice.h.

QString FakeBluetoothRemoteDevice::majorClass (  )  const [inline, virtual]

Retrieves the major class of the remote device.

Example: "computer"

Returns:
major class of remote device.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 69 of file fakebluetoothremotedevice.h.

QString FakeBluetoothRemoteDevice::manufacturer (  )  const [inline, virtual]

Retrieves company name based on the device address.

Returns:
manufacturer string of bluetooth chip.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 61 of file fakebluetoothremotedevice.h.

QString FakeBluetoothRemoteDevice::minorClass (  )  const [inline, virtual]

Retrieves the minor class of the remote device.

Exampe: "laptop"

Returns:
minor class of the remote device.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 73 of file fakebluetoothremotedevice.h.

QString FakeBluetoothRemoteDevice::name (  )  const [inline, virtual]

Retrieves the real name of the remote device.

See also alias(). Example: "Daniel's mobile"

Returns:
name of remote device.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 81 of file fakebluetoothremotedevice.h.

void FakeBluetoothRemoteDevice::nameChanged ( const QString &  name  )  [virtual, signal]

Name has beend changed of remote device.

name the name of the remote device

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

void FakeBluetoothRemoteDevice::nameResolvingFailed (  )  [virtual, signal]

Resolving of remote device name failed.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

int FakeBluetoothRemoteDevice::pinCodeLength (  )  const [inline, virtual]

Retrieves PIN code length that was used in the pairing process of remote device.

Returns:
PIN code length of pairing.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 101 of file fakebluetoothremotedevice.h.

void FakeBluetoothRemoteDevice::removeBonding (  )  [inline, virtual, slot]

Remove bonding bonding of remote device.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 146 of file fakebluetoothremotedevice.h.

void FakeBluetoothRemoteDevice::requestDisconnection (  )  [virtual, signal]

Disconnection has been requested for remote device.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

QString FakeBluetoothRemoteDevice::revision (  )  const [inline, virtual]

Retrieves the revision of the bluetooth chip of the remote device.

Returns:
revision of bluetooth chip.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 57 of file fakebluetoothremotedevice.h.

QStringList FakeBluetoothRemoteDevice::serviceClasses (  )  const [inline, virtual]

Retrieves a list of service classes of the remote device.

Example: ["networking", "object transfer"]

Returns:
list of service classes of the remote device.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 77 of file fakebluetoothremotedevice.h.

void FakeBluetoothRemoteDevice::serviceHandles ( const QString &  filter  )  const [inline, virtual, slot]

Obtains a list of unique identifiers to each service provided by this remote device.

As this is a slow operation, this method only queues the message in the dbus and returns the list of handles using the serviceHandlesAvailable signal

NOTE: Most local adapters won't support more than one search at a time, so serialize your requests

Parameters:
filter A filter to apply to the search (look at http://wiki.bluez.org/wiki/HOWTO/DiscoveringServices#Searchpatterns)

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 150 of file fakebluetoothremotedevice.h.

void FakeBluetoothRemoteDevice::serviceHandlesAvailable ( const QString &  ubi,
const QList< uint > &  handles 
) [virtual, signal]

Search for service handles is done.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

void FakeBluetoothRemoteDevice::serviceRecordAsXml ( uint  handle  )  const [inline, virtual, slot]

Requests the service record associated with the given handle.

As this is a slow operation, this method only queues the message in the dbus and returns the XML record using the serviceRecordXmlAvailable signal.

NOTE: Most local adapters won't support more than one search at a time, so serialize your requests

Parameters:
handle The handle that uniquely identifies the service record requested.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 154 of file fakebluetoothremotedevice.h.

void FakeBluetoothRemoteDevice::serviceRecordXmlAvailable ( const QString &  ubi,
const QString &  record 
) [virtual, signal]

A new service record is available.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

void FakeBluetoothRemoteDevice::setAlias ( const QString &  alias  )  [inline, virtual, slot]

Set alias for remote device.

Parameters:
alias new alias name

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 132 of file fakebluetoothremotedevice.h.

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

Retrieves the Universal Bluetooth Identifier (UBI) of the remote device.

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

Returns:
the Universal Bluetooth Identifier of the current remote device.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 41 of file fakebluetoothremotedevice.h.

QString FakeBluetoothRemoteDevice::version (  )  const [inline, virtual]

Retrieves the bluetooth version of the remote device.

LMP version (+ EDR support)

Returns:
version of bluetooth chip.

Implements Solid::Control::Ifaces::BluetoothRemoteDevice.

Definition at line 53 of file fakebluetoothremotedevice.h.


Member Data Documentation

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

Definition at line 171 of file fakebluetoothremotedevice.h.


The documentation for this class was generated from the following files:
  • fakebluetoothremotedevice.h
  • fakebluetoothremotedevice.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