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

libsolidcontrol

Solid::Control::BluetoothRemoteDevice

Solid::Control::BluetoothRemoteDevice Class Reference

Represents a bluetooth remote device as seen by the bluetoothing subsystem. More...

#include <bluetoothremotedevice.h>

Inheritance diagram for Solid::Control::BluetoothRemoteDevice:

Inheritance graph
[legend]

List of all members.


Public Slots

void cancelDiscovery ()
void disconnect ()
void setProperty (const QString &name, const QVariant &value)

Signals

void disconnectRequested ()
void propertyChanged (const QString &name, const QVariant &value)
void serviceDiscoverAvailable (const QString &status, const QMap< uint, QString > &services)

Public Member Functions

QString address ()
 BluetoothRemoteDevice (const BluetoothRemoteDevice &device)
 BluetoothRemoteDevice (QObject *backendObject=0)
void discoverServices (const QString &pattern)
QMap< QString, QVariant > getProperties ()
QString icon ()
bool isConnected ()
bool isTrusted ()
QStringList listNodes ()
QString name ()
BluetoothRemoteDevice & operator= (const BluetoothRemoteDevice &device)
bool operator== (const BluetoothRemoteDevice &other) const
void setTrusted (bool)
QString ubi () const
QStringList uuids ()
 ~BluetoothRemoteDevice ()

Protected Attributes

BluetoothRemoteDevicePrivate * d_ptr

Detailed Description

Represents a bluetooth remote device as seen by the bluetoothing subsystem.

Definition at line 44 of file bluetoothremotedevice.h.


Constructor & Destructor Documentation

Solid::Control::BluetoothRemoteDevice::BluetoothRemoteDevice ( QObject *  backendObject = 0  ) 

Creates a new BluetoothRemoteDevice object.

Parameters:
backendObject the bluetooth remote device object provided by the backend

Definition at line 49 of file bluetoothremotedevice.cpp.

Solid::Control::BluetoothRemoteDevice::BluetoothRemoteDevice ( const BluetoothRemoteDevice &  device  ) 

Constructs a copy of a bluetooth remote device.

Parameters:
device the bluetooth remote device to copy

Definition at line 56 of file bluetoothremotedevice.cpp.

Solid::Control::BluetoothRemoteDevice::~BluetoothRemoteDevice (  ) 

Destroys the device.

Definition at line 63 of file bluetoothremotedevice.cpp.


Member Function Documentation

QString Solid::Control::BluetoothRemoteDevice::address (  ) 

The address of the remote device.

Definition at line 125 of file bluetoothremotedevice.cpp.

void Solid::Control::BluetoothRemoteDevice::cancelDiscovery (  )  [slot]

Cancel a started service Discovery.

Definition at line 112 of file bluetoothremotedevice.cpp.

void Solid::Control::BluetoothRemoteDevice::disconnect (  )  [slot]

Request a disconnect from the remote device.

Definition at line 118 of file bluetoothremotedevice.cpp.

void Solid::Control::BluetoothRemoteDevice::disconnectRequested (  )  [signal]

Disconnect to the remote device requested.

void Solid::Control::BluetoothRemoteDevice::discoverServices ( const QString &  pattern  ) 

Discover all available Services from the remote Device.

When the call is finished serviceDiscoverAvailable is thrown.

Parameters:
pattern a service handle pattern to search for

Definition at line 330 of file bluetoothremotedevice.cpp.

QMap< QString, QVariant > Solid::Control::BluetoothRemoteDevice::getProperties (  ) 

Retrieve all properties from the remote device.

Returns:
a hash of named properties

Definition at line 85 of file bluetoothremotedevice.cpp.

QString Solid::Control::BluetoothRemoteDevice::icon (  ) 

The icon of the remote device.

Definition at line 153 of file bluetoothremotedevice.cpp.

bool Solid::Control::BluetoothRemoteDevice::isConnected (  ) 

The Connection state of the remote device.

Definition at line 173 of file bluetoothremotedevice.cpp.

bool Solid::Control::BluetoothRemoteDevice::isTrusted (  ) 

The Trust state of the remote device.

Definition at line 138 of file bluetoothremotedevice.cpp.

QStringList Solid::Control::BluetoothRemoteDevice::listNodes (  ) 

List all defined Nodes.

Returns:
a List of ObjectPaths from all defined Nodes

Definition at line 100 of file bluetoothremotedevice.cpp.

QString Solid::Control::BluetoothRemoteDevice::name (  ) 

The name of the remote device.

Definition at line 233 of file bluetoothremotedevice.cpp.

Solid::Control::BluetoothRemoteDevice & Solid::Control::BluetoothRemoteDevice::operator= ( const BluetoothRemoteDevice &  device  ) 

Assigns a bluetooth remote device to this bluetooth remote device and returns a reference to it.

Parameters:
device the bluetooth remote device to assign
Returns:
a reference to the bluetooth remote device

Definition at line 66 of file bluetoothremotedevice.cpp.

bool Solid::Control::BluetoothRemoteDevice::operator== ( const BluetoothRemoteDevice &  other  )  const

Checks for equality.

Parameters:
other the bluetooth remote device to compare with this
Returns:
true if this->ubi() equals other.ubi(), false otherwise

Definition at line 74 of file bluetoothremotedevice.cpp.

void Solid::Control::BluetoothRemoteDevice::propertyChanged ( const QString &  name,
const QVariant &  value 
) [signal]

A Property for the remote device has changed.

Parameters:
name the name of the changed property
value the new value

void Solid::Control::BluetoothRemoteDevice::serviceDiscoverAvailable ( const QString &  status,
const QMap< uint, QString > &  services 
) [signal]

Search for services is done.

Parameters:
status the result of the discovering.
services the discovered Services.

void Solid::Control::BluetoothRemoteDevice::setProperty ( const QString &  name,
const QVariant &  value 
) [slot]

Set a new Value for a named property.

Parameters:
name the name of the property
value the new value to be set

Definition at line 106 of file bluetoothremotedevice.cpp.

void Solid::Control::BluetoothRemoteDevice::setTrusted ( bool  trust  ) 

Set the Trust state of the remote device.

Definition at line 148 of file bluetoothremotedevice.cpp.

QString Solid::Control::BluetoothRemoteDevice::ubi (  )  const

The UBI of the remote device.

Definition at line 79 of file bluetoothremotedevice.cpp.

QStringList Solid::Control::BluetoothRemoteDevice::uuids (  ) 

Returns the service uuids of the remote device.

Definition at line 163 of file bluetoothremotedevice.cpp.


Member Data Documentation

BluetoothRemoteDevicePrivate* Solid::Control::BluetoothRemoteDevice::d_ptr [protected]

Definition at line 191 of file bluetoothremotedevice.h.


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