libsolidcontrol
Solid::Control::BluetoothRemoteDevice Class Reference
Represents a bluetooth remote device as seen by the bluetoothing subsystem. More...
#include <bluetoothremotedevice.h>

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 | ( | ) |
Member Function Documentation
QString Solid::Control::BluetoothRemoteDevice::address | ( | ) |
void Solid::Control::BluetoothRemoteDevice::cancelDiscovery | ( | ) | [slot] |
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.
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 | ( | ) |
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 | ( | ) |
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 | ( | ) |
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 | ) |
QString Solid::Control::BluetoothRemoteDevice::ubi | ( | ) | const |
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: