4#ifndef QLOWENERGYCONTROLLER_H
5#define QLOWENERGYCONTROLLER_H
7#include <QtCore/QObject>
8#include <QtBluetooth/QBluetoothAddress>
9#include <QtBluetooth/QBluetoothDeviceInfo>
10#include <QtBluetooth/QBluetoothUuid>
11#include <QtBluetooth/QLowEnergyAdvertisingData>
12#include <QtBluetooth/QLowEnergyConnectionParameters>
13#include <QtBluetooth/QLowEnergyService>
79 ControllerState
state()
const;
82 RemoteAddressType remoteAddressType()
const;
83 void setRemoteAddressType(RemoteAddressType
type);
85 void connectToDevice();
86 void disconnectFromDevice();
88 void discoverServices();
95 void stopAdvertising();
141 QLowEnergyController__ControllerState,
144 QLowEnergyController__RemoteAddressType,
std::vector< ObjCStrongReference< CBMutableService > > services
The QLowEnergyAdvertisingData class represents the data to be broadcast during Bluetooth Low Energy a...
The QLowEnergyAdvertisingParameters class represents the parameters used for Bluetooth Low Energy adv...
The QLowEnergyConnectionParameters class is used when requesting or reporting an update of the parame...
RemoteAddressType
Indicates what type of Bluetooth address the remote device uses.
ControllerState
Indicates the state of the controller object.
void connected()
This signal is emitted when the controller successfully connects to the remote Low Energy device (if ...
void rssiRead(qint16 rssi)
This signal is emitted after successful read of RSSI (received signal strength indicator) for a conne...
Role
Indicates the role of the controller object.
void errorOccurred(QLowEnergyController::Error newError)
This signal is emitted when an error occurs.
void connectionUpdated(const QLowEnergyConnectionParameters ¶meters)
This signal is emitted when the connection parameters change.
Error
Indicates all possible error conditions found during the controller's existence.
@ UnknownRemoteDeviceError
@ InvalidBluetoothAdapterError
@ MissingPermissionsError
void disconnected()
This signal is emitted when the controller disconnects from the remote Low Energy device or vice vers...
void stateChanged(QLowEnergyController::ControllerState state)
This signal is emitted when the controller's state changes.
void serviceDiscovered(const QBluetoothUuid &newService)
This signal is emitted each time a new service is discovered.
void discoveryFinished()
This signal is emitted when the running service discovery finishes.
void mtuChanged(int mtu)
This signal is emitted as a result of a successful MTU change.
The QLowEnergyServiceData class is used to set up GATT service data. \inmodule QtBluetooth.
QScopedPointer< QObjectData > d_ptr
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent