libsolidcontrol
FakeBluetoothInterface Class Reference
#include <fakebluetoothinterface.h>

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, virtual] |
Retrieves the MAC address of the bluetooth interface/adapter.
- Returns:
- MAC address of bluetooth interface
Implements Solid::Control::Ifaces::BluetoothInterface.
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] |
This signal is emitted if a successful bonding has been created.
- Parameters:
-
address the address of the bluetooth remote device
Reimplemented from Solid::Control::Ifaces::BluetoothInterface.
void FakeBluetoothInterface::bondingRemoved | ( | const QString & | address | ) | [signal] |
This signal is emitted if the bonding to a bluetooth device has been removed.
- Parameters:
-
address the address of the bluetooth remote device
Reimplemented from Solid::Control::Ifaces::BluetoothInterface.
void FakeBluetoothInterface::cancelDiscovery | ( | ) | [inline, virtual, slot] |
Cancel discovery of remote bluetooth devices.
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 188 of file fakebluetoothinterface.h.
QString FakeBluetoothInterface::company | ( | ) | const [inline, virtual] |
Retrieves the name of the bluetooth chip company.
Based on device address.
- Returns:
- company string of bluetooth interface/adapter
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 71 of file fakebluetoothinterface.h.
Instantiates a new BluetoothRemoteDevice object from this backend given its address.
- Parameters:
-
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, virtual] |
Retrieves the discoverable timeout of the bluetooth interface/adapter.
Discoverable timeout of 0 means never disappear.
- Returns:
- current discoverable timeout in seconds
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 79 of file fakebluetoothinterface.h.
void FakeBluetoothInterface::discoverableTimeoutChanged | ( | int | timeout | ) | [signal] |
The signal is emitted if the discoverable timeout of the bluetooth interface/adapter has changed.
- Parameters:
-
timeout the changed timeout in seconds
Reimplemented from Solid::Control::Ifaces::BluetoothInterface.
void FakeBluetoothInterface::discoverDevices | ( | ) | [virtual, slot] |
Start discovery of remote bluetooth devices with device name resolving.
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 82 of file fakebluetoothinterface.cpp.
void FakeBluetoothInterface::discoverDevicesWithoutNameResolving | ( | ) | [inline, virtual, slot] |
Start discovery of remote bluetooth devices without device name resolving.
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 186 of file fakebluetoothinterface.h.
void FakeBluetoothInterface::discoveryCompleted | ( | ) | [signal] |
This signal is emitted if a discovery has completed.
Reimplemented from Solid::Control::Ifaces::BluetoothInterface.
void FakeBluetoothInterface::discoveryStarted | ( | ) | [signal] |
This signal is emitted if a discovery has started.
Reimplemented from Solid::Control::Ifaces::BluetoothInterface.
Returns the name of the remote device, given its mac address (mac).
- Returns:
- the name of the remote device
Implements Solid::Control::Ifaces::BluetoothInterface.
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, virtual] |
Retrieves the current discoverable staut of the bluetooth interface/adapter.
- Returns:
- current discoverable status of bluetooth interface/adapter
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 83 of file fakebluetoothinterface.h.
bool FakeBluetoothInterface::isPeriodicDiscoveryActive | ( | ) | const [inline, virtual] |
Periodic discovery status of this bluetooth interface/adapter.
- Returns:
- true if periodic discovery is already active otherwise false
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 119 of file fakebluetoothinterface.h.
bool FakeBluetoothInterface::isPeriodicDiscoveryNameResolvingActive | ( | ) | const [inline, virtual] |
Name resolving status of periodic discovery routing.
- Returns:
- true if name got resolved while periodic discovery of this bluetooth interface/adapter
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 123 of file fakebluetoothinterface.h.
bool FakeBluetoothInterface::isTrusted | ( | const QString & | ) | [inline, virtual] |
Returns true if the remote bluetooth device is trusted otherwise false.
- Parameters:
-
mac the address of the remote device
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 135 of file fakebluetoothinterface.h.
QStringList FakeBluetoothInterface::listAvailableMinorClasses | ( | ) | const [inline, virtual] |
List supported minor classes of the bluetooth interface/adapter.
- Returns:
- list of supported minor classes by bluetooth interface/adapter
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 95 of file fakebluetoothinterface.h.
QStringList FakeBluetoothInterface::listBondings | ( | ) | const [inline, virtual] |
List UBIs of bonded/paired remote bluetooth devices with this bluetooth interface/adapter.
- Returns:
- UBIs of bonded/paired bluetooth remote devices
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 115 of file fakebluetoothinterface.h.
QStringList FakeBluetoothInterface::listConnections | ( | ) | const [inline, virtual] |
List all UBIs of connected remote bluetooth devices of this handled bluetooth interface/adapter.
- Returns:
- list UBIs of connected bluetooth remote devices
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 87 of file fakebluetoothinterface.h.
QStringList FakeBluetoothInterface::listRecentRemoteDevices | ( | const QDateTime & | date | ) | const [inline, virtual] |
List the Universal Bluetooth Identifier (UBI) of all known remote devices since a specific datestamp.
Known remote devices means remote bluetooth which are seen, used or paired/bonded.
See listConnections(), listRemoteDevices()
- Parameters:
-
date the datestamp of the beginning of recent used devices
- Returns:
- a QStringList of UBIs of all known remote bluetooth devices
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 131 of file fakebluetoothinterface.h.
QStringList FakeBluetoothInterface::listRemoteDevices | ( | ) | const [inline, virtual] |
List the Universal Bluetooth Identifier (UBI) of all known remote devices, which are seen, used or paired/bonded.
- Returns:
- a QStringList of UBIs of all known remote bluetooth devices
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 127 of file fakebluetoothinterface.h.
QString FakeBluetoothInterface::majorClass | ( | ) | const [inline, virtual] |
Retrieves major class of the bluetooth interface/adapter.
- Returns:
- current major class of the bluetooth interface/adapter
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 91 of file fakebluetoothinterface.h.
QString FakeBluetoothInterface::manufacturer | ( | ) | const [inline, virtual] |
Retrieves the name of the bluetooth chip manufacturer.
Example: "Cambdirge Silicon Radio"
- Returns:
- manufacturer string of bluetooth interface/adapter
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 67 of file fakebluetoothinterface.h.
QString FakeBluetoothInterface::minorClass | ( | ) | const [inline, virtual] |
Retrievies minor class of the bluetooth interface/adapter.
Valid classes, see listAvailableMinorClasses()
- Returns:
- minor class of the bluetooth interface/adapter.
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 99 of file fakebluetoothinterface.h.
void FakeBluetoothInterface::minorClassChanged | ( | const QString & | minor | ) | [signal] |
The signal is emitted if the minor class of the bluetooth interface/adapter has changed.
- Parameters:
-
minor the new minor class
Reimplemented from Solid::Control::Ifaces::BluetoothInterface.
Solid::Control::BluetoothInterface::Mode FakeBluetoothInterface::mode | ( | ) | const [inline, virtual] |
Retrieves the current mode of the bluetooth interface/adapter.
Valid modes: "off", "connectable", "discoverable"
- Todo:
- determine unify type for valid modes.. enum?! what about other bluetooth APIs? three modes?
- Returns:
- current mode of bluetooth interface/adaoter
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 75 of file fakebluetoothinterface.h.
void FakeBluetoothInterface::modeChanged | ( | Solid::Control::BluetoothInterface::Mode | ) | [signal] |
This signal is emitted if the mode of the bluetooth interface/adapter has changed.
See mode() for valid modes.
- Parameters:
-
mode the changed mode
Reimplemented from Solid::Control::Ifaces::BluetoothInterface.
QString FakeBluetoothInterface::name | ( | ) | const [inline, virtual] |
Retrieves name of bluetooth interface/adapter.
- Returns:
- name of bluetooth interface/adapter
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 107 of file fakebluetoothinterface.h.
void FakeBluetoothInterface::nameChanged | ( | const QString & | name | ) | [signal] |
The signal is emitted if the name of the bluetooth interface/adapter has changed.
- Parameters:
-
name the new name of the device
Reimplemented from Solid::Control::Ifaces::BluetoothInterface.
void FakeBluetoothInterface::remoteDeviceConnected | ( | const QString & | address | ) | [signal] |
This signal is emitted if a bluetooth connection has been created.
- Parameters:
-
address the address of the connected bluetooth remote device
Reimplemented from Solid::Control::Ifaces::BluetoothInterface.
void FakeBluetoothInterface::remoteDeviceDisappeared | ( | const QString & | ubi | ) | [signal] |
This signal is emitted if the bluetooth interface/adapter detectes a bluetooth device disappeared.
- Parameters:
-
ubi the ubi of the disappering bluetooth remote device
Reimplemented from Solid::Control::Ifaces::BluetoothInterface.
void FakeBluetoothInterface::remoteDeviceDisconnected | ( | const QString & | address | ) | [signal] |
This signal is emitted if a bluetooth connection has been terminated.
- Parameters:
-
address the address of the disconnected bluetooth remote device
Reimplemented from Solid::Control::Ifaces::BluetoothInterface.
void FakeBluetoothInterface::remoteDeviceFound | ( | const QString & | ubi, | |
int | deviceClass, | |||
int | rssi | |||
) | [signal] |
This signal is emitted if the bluetooth interface/adapter detects a new remote bluetooth device.
- Todo:
- change arguments types of deviceClass (uint32) and rssi (int16)
- Parameters:
-
ubi the new bluetooth identifier deviceClass the device Class of the remote device rssi the RSSI link of the remote device
Reimplemented from Solid::Control::Ifaces::BluetoothInterface.
void FakeBluetoothInterface::remoteNameUpdated | ( | const QString & | address, | |
const QString & | name | |||
) | [signal] |
This signal is emitted if the bluetooth interface/adapter detectes a new name for a bluetooth device.
- Parameters:
-
address the address of the bluetooth remote device name the name of the bluetooth remote device
Reimplemented from Solid::Control::Ifaces::BluetoothInterface.
void FakeBluetoothInterface::removeTrust | ( | const QString & | ) | [inline, virtual, slot] |
Marks the device as not trusted.
- Parameters:
-
mac the address of the remote device
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 202 of file fakebluetoothinterface.h.
QString FakeBluetoothInterface::revision | ( | ) | const [inline, virtual] |
Retrieves the revision of the chip of the bluetooth interface/adapter.
Example: "HCI 19.2"
- Returns:
- bluetooth chip revision
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 63 of file fakebluetoothinterface.h.
QStringList FakeBluetoothInterface::serviceClasses | ( | ) | const [inline, virtual] |
List services class of the bluetooth interface/adapter.
- Returns:
- list of service classes or empty list if no services registered
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 103 of file fakebluetoothinterface.h.
void FakeBluetoothInterface::setDiscoverableTimeout | ( | int | timeout | ) | [inline, virtual, slot] |
Set discoverable timeout of bluetooth interface/adapter.
- Parameters:
-
timeout timeout in seconds
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 173 of file fakebluetoothinterface.h.
void FakeBluetoothInterface::setMinorClass | ( | const QString & | minor | ) | [inline, virtual, slot] |
Set minor class of bluetooth interface/adapter.
- Parameters:
-
minor set minor class. Valid mode see listAvaliableMinorClasses()
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 177 of file fakebluetoothinterface.h.
void FakeBluetoothInterface::setMode | ( | const Solid::Control::BluetoothInterface::Mode | mode | ) | [inline, virtual, slot] |
Set mode of bluetooth interface/adapter.
Valid modes, see mode()
- Parameters:
-
mode the mode of the bluetooth interface/adapter
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 169 of file fakebluetoothinterface.h.
void FakeBluetoothInterface::setName | ( | const QString & | name | ) | [inline, virtual, slot] |
Set name of bluetooth interface/adapter.
- Parameters:
-
name the name of bluetooth interface/adapter
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 181 of file fakebluetoothinterface.h.
void FakeBluetoothInterface::setPeriodicDiscoveryNameResolving | ( | bool | resolveNames | ) | [inline, virtual, slot] |
Enable/Disable name resolving of remote bluetooth devices in periodic discovery.
- Parameters:
-
resolveName true to enable name resolving otherwise false
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 194 of file fakebluetoothinterface.h.
void FakeBluetoothInterface::setTrusted | ( | const QString & | ) | [inline, virtual, slot] |
Marks the device as trusted.
- Parameters:
-
mac the address of the remote device
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 198 of file fakebluetoothinterface.h.
void FakeBluetoothInterface::startPeriodicDiscovery | ( | ) | [inline, virtual, slot] |
Start periodic discovery of remote bluetooth devices.
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 190 of file fakebluetoothinterface.h.
void FakeBluetoothInterface::stopPeriodicDiscovery | ( | ) | [inline, virtual, slot] |
Stop periodic discovery of remote bluetooth devices.
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 192 of file fakebluetoothinterface.h.
void FakeBluetoothInterface::trustAdded | ( | const QString & | address | ) | [signal] |
This signal is emitted if a bluetooth device was set trusted.
- Parameters:
-
address the address of the trusted bluetooth remote device
Reimplemented from Solid::Control::Ifaces::BluetoothInterface.
void FakeBluetoothInterface::trustRemoved | ( | const QString & | address | ) | [signal] |
This signal is emitted if the trust to the bluetooth device was removed.
- Parameters:
-
address the address of the bluetooth remote device
Reimplemented from Solid::Control::Ifaces::BluetoothInterface.
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, virtual] |
Retrieves the version of the chip of the bluetooth interface/adapter.
Example: "Bluetooth 2.0 + EDR"
- Returns:
- bluetooth chip version
Implements Solid::Control::Ifaces::BluetoothInterface.
Definition at line 59 of file fakebluetoothinterface.h.
Member Data Documentation
QMap<QString, FakeBluetoothRemoteDevice *> FakeBluetoothInterface::mBluetoothRemoteDevices [protected] |
Definition at line 228 of file fakebluetoothinterface.h.
QMap<QString, QVariant> FakeBluetoothInterface::mPropertyMap [protected] |
Definition at line 229 of file fakebluetoothinterface.h.
The documentation for this class was generated from the following files: