|
libbluedevil v1.8
|
#include <bluedevil/bluedevildevice.h>
This class represents a remote device, discovered by an Adapter.
This device has some information for free (this meaning there is no need to register the device on the bus). This properties that do not need connection are explicitly marked on their respective documentation.
Since this values are cached, you will not get updates on their state until you make a call that forces the device to be registered on the bus (and thus, created, in D-Bus terminology), or you explicitly call to registerDevice.
After the Device has been registered, it will automatically update its properties internally, and additionally signals like pairedChanged will be emitted when this properties are updated.
Please note that since some functions here are blocking, there exists a way to asynchronous perform certain operations that are known to be expensive. This way your GUI will not block itself when waiting for a response from the remote device.
| BlueDevil::Device::~Device | ( | ) | [virtual] |
| Adapter* BlueDevil::Device::adapter | ( | ) | const |
| QString BlueDevil::Device::address | ( | ) | const |
| QString BlueDevil::Device::alias | ( | ) | const |
| void BlueDevil::Device::aliasChanged | ( | const QString & | alias | ) | [signal] |
| void BlueDevil::Device::blockedChanged | ( | bool | blocked | ) | [signal] |
| void BlueDevil::Device::cancelDiscovery | ( | ) | [slot] |
Cancels service discovery.
| void BlueDevil::Device::connectedChanged | ( | bool | connected | ) | [signal] |
| quint32 BlueDevil::Device::deviceClass | ( | ) | const |
| void BlueDevil::Device::disconnect | ( | ) | [slot] |
Disconnect from this remote device.
| void BlueDevil::Device::disconnectRequested | ( | ) | [signal] |
| QUInt32StringMap BlueDevil::Device::discoverServices | ( | const QString & | pattern = QString() | ) | [slot] |
| void BlueDevil::Device::discoverServicesResult | ( | Device * | device, |
| const QUInt32StringMap & | services | ||
| ) | [signal] |
| QString BlueDevil::Device::friendlyName | ( | ) | const |
| bool BlueDevil::Device::hasLegacyPairing | ( | ) | const |
| QString BlueDevil::Device::icon | ( | ) | const |
| bool BlueDevil::Device::isBlocked | ( | ) |
| void BlueDevil::Device::isBlockedResult | ( | Device * | device, |
| bool | blocked | ||
| ) | [signal] |
| bool BlueDevil::Device::isConnected | ( | ) |
| void BlueDevil::Device::isConnectedResult | ( | Device * | device, |
| bool | connected | ||
| ) | [signal] |
| bool BlueDevil::Device::isPaired | ( | ) | const |
| bool BlueDevil::Device::isRegistered | ( | ) | const |
| bool BlueDevil::Device::isTrusted | ( | ) |
| void BlueDevil::Device::isTrustedResult | ( | Device * | device, |
| bool | trusted | ||
| ) | [signal] |
| QString BlueDevil::Device::name | ( | ) | const |
| void BlueDevil::Device::nameChanged | ( | const QString & | name | ) | [signal] |
| void BlueDevil::Device::pair | ( | const QString & | agentPath, |
| Adapter::RegisterCapability | capability | ||
| ) | const |
Starts the pairing process, the pairedChanged signal will be emitted if succeeded.
| agentPath | The path where the agent has been registered. |
| capability | The same capability attribute set when registering the agent with registerAgent. |
| void BlueDevil::Device::pairedChanged | ( | bool | paired | ) | [signal] |
| void BlueDevil::Device::propertyChanged | ( | const QString & | property, |
| const QVariant & | value | ||
| ) | [signal] |
| bool BlueDevil::Device::registerDevice | ( | ) | [slot] |
It is not mandatory to call to this method. If you are just retrieving some information that will not trigger a connection to the device, and you do not need to check if some properties were updated, please do not call to this method, since it is expensive (it will force a registration of the device on the bus).
On the other hand, if what you want is to receive signals of properties being updated and you have not called a method that triggers a connection to the device, you should explicitly call to this method, so the device is registered.
| void BlueDevil::Device::registerDeviceAsync | ( | ) | [slot] |
This is like registerDevice method but instead of returning bool to indicate wether the registration has succeed or not, this method will emit a registered signal.
| void BlueDevil::Device::registerDeviceResult | ( | Device * | device, |
| bool | deviceRegistered | ||
| ) | [signal] |
| void BlueDevil::Device::registered | ( | Device * | device | ) | [signal] |
| void BlueDevil::Device::setAlias | ( | const QString & | alias | ) | [slot] |
Sets the alias of the remote device.
| void BlueDevil::Device::setBlocked | ( | bool | blocked | ) | [slot] |
Sets whether this remote device is blocked or not.
| void BlueDevil::Device::setTrusted | ( | bool | trusted | ) | [slot] |
Sets whether this remote device is trusted or not.
| void BlueDevil::Device::trustedChanged | ( | bool | trusted | ) | [signal] |
| QString BlueDevil::Device::UBI | ( | ) |
| QStringList BlueDevil::Device::UUIDs | ( | ) |
| void BlueDevil::Device::UUIDsChanged | ( | const QStringList & | UUIDs | ) | [signal] |
| void BlueDevil::Device::UUIDsResult | ( | Device * | device, |
| const QStringList & | UUIDs | ||
| ) | [signal] |
friend class Adapter [friend] |
Adapter * BlueDevil::Device::adapter [read] |
QString BlueDevil::Device::address [read] |
QString BlueDevil::Device::alias [read, write] |
bool BlueDevil::Device::blocked [read, write] |
quint32 BlueDevil::Device::deviceClass [read] |
QString BlueDevil::Device::friendlyName [read] |
bool BlueDevil::Device::hasLegacyPairing [read] |
QString BlueDevil::Device::icon [read] |
bool BlueDevil::Device::isConnected [read] |
bool BlueDevil::Device::isPaired [read] |
bool BlueDevil::Device::isRegistered [read] |
QString BlueDevil::Device::name [read] |
bool BlueDevil::Device::trusted [read, write] |
QString BlueDevil::Device::UBI [read] |
QStringList BlueDevil::Device::UUIDs [read] |
1.7.3