Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
HciManager Class Reference

#include <hcimanager_p.h>

+ Inheritance diagram for HciManager:
+ Collaboration diagram for HciManager:

Public Types

enum class  HciEvent {
  EVT_INQUIRY_COMPLETE = 0x01 , EVT_INQUIRY_RESULT = 0x02 , EVT_CONN_COMPLETE = 0x03 , EVT_CONN_REQUEST = 0x04 ,
  EVT_DISCONN_COMPLETE = 0x05 , EVT_AUTH_COMPLETE = 0x06 , EVT_REMOTE_NAME_REQ_COMPLETE = 0x07 , EVT_ENCRYPT_CHANGE = 0x08 ,
  EVT_CHANGE_CONN_LINK_KEY_COMPLETE = 0x09 , EVT_MASTER_LINK_KEY_COMPLETE = 0x0A , EVT_READ_REMOTE_FEATURES_COMPLETE = 0x0B , EVT_READ_REMOTE_VERSION_COMPLETE = 0x0C ,
  EVT_QOS_SETUP_COMPLETE = 0x0D , EVT_CMD_COMPLETE = 0x0E , EVT_CMD_STATUS = 0x0F , EVT_HARDWARE_ERROR = 0x10 ,
  EVT_FLUSH_OCCURRED = 0x11 , EVT_ROLE_CHANGE = 0x12 , EVT_NUM_COMP_PKTS = 0x13 , EVT_MODE_CHANGE = 0x14 ,
  EVT_RETURN_LINK_KEYS = 0x15 , EVT_PIN_CODE_REQ = 0x16 , EVT_LINK_KEY_REQ = 0x17 , EVT_LINK_KEY_NOTIFY = 0x18 ,
  EVT_LOOPBACK_COMMAND = 0x19 , EVT_DATA_BUFFER_OVERFLOW = 0x1A , EVT_MAX_SLOTS_CHANGE = 0x1B , EVT_READ_CLOCK_OFFSET_COMPLETE = 0x1C ,
  EVT_CONN_PTYPE_CHANGED = 0x1D , EVT_QOS_VIOLATION = 0x1E , EVT_PSCAN_REP_MODE_CHANGE = 0x20 , EVT_FLOW_SPEC_COMPLETE = 0x21 ,
  EVT_INQUIRY_RESULT_WITH_RSSI = 0x22 , EVT_READ_REMOTE_EXT_FEATURES_COMPLETE = 0x23 , EVT_SYNC_CONN_COMPLETE = 0x2C , EVT_SYNC_CONN_CHANGED = 0x2D ,
  EVT_SNIFF_SUBRATING = 0x2E , EVT_EXTENDED_INQUIRY_RESULT = 0x2F , EVT_ENCRYPTION_KEY_REFRESH_COMPLETE = 0x30 , EVT_IO_CAPABILITY_REQUEST = 0x31 ,
  EVT_IO_CAPABILITY_RESPONSE = 0x32 , EVT_USER_CONFIRM_REQUEST = 0x33 , EVT_USER_PASSKEY_REQUEST = 0x34 , EVT_REMOTE_OOB_DATA_REQUEST = 0x35 ,
  EVT_SIMPLE_PAIRING_COMPLETE = 0x36 , EVT_LINK_SUPERVISION_TIMEOUT_CHANGED = 0x38 , EVT_ENHANCED_FLUSH_COMPLETE = 0x39 , EVT_USER_PASSKEY_NOTIFY = 0x3B ,
  EVT_KEYPRESS_NOTIFY = 0x3C , EVT_REMOTE_HOST_FEATURES_NOTIFY = 0x3D , EVT_LE_META_EVENT = 0x3E , EVT_PHYSICAL_LINK_COMPLETE = 0x40 ,
  EVT_CHANNEL_SELECTED = 0x41 , EVT_DISCONNECT_PHYSICAL_LINK_COMPLETE = 0x42 , EVT_PHYSICAL_LINK_LOSS_EARLY_WARNING = 0x43 , EVT_PHYSICAL_LINK_RECOVERY = 0x44 ,
  EVT_LOGICAL_LINK_COMPLETE = 0x45 , EVT_DISCONNECT_LOGICAL_LINK_COMPLETE = 0x46 , EVT_FLOW_SPEC_MODIFY_COMPLETE = 0x47 , EVT_NUMBER_COMPLETED_BLOCKS = 0x48 ,
  EVT_AMP_STATUS_CHANGE = 0x4D , EVT_TESTING = 0xFE , EVT_VENDOR = 0xFF , EVT_STACK_INTERNAL = 0xFD
}
 
enum class  HciError {
  HCI_SUCCESS = 0x00 , HCI_UNKNOWN_COMMAND = 0x01 , HCI_NO_CONNECTION = 0x02 , HCI_HARDWARE_FAILURE = 0x03 ,
  HCI_PAGE_TIMEOUT = 0x04 , HCI_AUTHENTICATION_FAILURE = 0x05 , HCI_PIN_OR_KEY_MISSING = 0x06 , HCI_MEMORY_FULL = 0x07 ,
  HCI_CONNECTION_TIMEOUT = 0x08 , HCI_MAX_NUMBER_OF_CONNECTIONS = 0x09 , HCI_MAX_NUMBER_OF_SCO_CONNECTIONS = 0x0a , HCI_ACL_CONNECTION_EXISTS = 0x0b ,
  HCI_COMMAND_DISALLOWED = 0x0c , HCI_REJECTED_LIMITED_RESOURCES = 0x0d , HCI_REJECTED_SECURITY = 0x0e , HCI_REJECTED_PERSONAL = 0x0f ,
  HCI_HOST_TIMEOUT = 0x10 , HCI_UNSUPPORTED_FEATURE = 0x11 , HCI_INVALID_PARAMETERS = 0x12 , HCI_OE_USER_ENDED_CONNECTION = 0x13 ,
  HCI_OE_LOW_RESOURCES = 0x14 , HCI_OE_POWER_OFF = 0x15 , HCI_CONNECTION_TERMINATED = 0x16 , HCI_REPEATED_ATTEMPTS = 0x17 ,
  HCI_PAIRING_NOT_ALLOWED = 0x18 , HCI_UNKNOWN_LMP_PDU = 0x19 , HCI_UNSUPPORTED_REMOTE_FEATURE = 0x1a , HCI_SCO_OFFSET_REJECTED = 0x1b ,
  HCI_SCO_INTERVAL_REJECTED = 0x1c , HCI_AIR_MODE_REJECTED = 0x1d , HCI_INVALID_LMP_PARAMETERS = 0x1e , HCI_UNSPECIFIED_ERROR = 0x1f ,
  HCI_UNSUPPORTED_LMP_PARAMETER_VALUE = 0x20 , HCI_ROLE_CHANGE_NOT_ALLOWED = 0x21 , HCI_LMP_RESPONSE_TIMEOUT = 0x22 , HCI_LMP_ERROR_TRANSACTION_COLLISION = 0x23 ,
  HCI_LMP_PDU_NOT_ALLOWED = 0x24 , HCI_ENCRYPTION_MODE_NOT_ACCEPTED = 0x25 , HCI_UNIT_LINK_KEY_USED = 0x26 , HCI_QOS_NOT_SUPPORTED = 0x27 ,
  HCI_INSTANT_PASSED = 0x28 , HCI_PAIRING_NOT_SUPPORTED = 0x29 , HCI_TRANSACTION_COLLISION = 0x2a , HCI_QOS_UNACCEPTABLE_PARAMETER = 0x2c ,
  HCI_QOS_REJECTED = 0x2d , HCI_CLASSIFICATION_NOT_SUPPORTED = 0x2e , HCI_INSUFFICIENT_SECURITY = 0x2f , HCI_PARAMETER_OUT_OF_RANGE = 0x30 ,
  HCI_ROLE_SWITCH_PENDING = 0x32 , HCI_SLOT_VIOLATION = 0x34 , HCI_ROLE_SWITCH_FAILED = 0x35 , HCI_EIR_TOO_LARGE = 0x36 ,
  HCI_SIMPLE_PAIRING_NOT_SUPPORTED = 0x37 , HCI_HOST_BUSY_PAIRING = 0x38
}
 

Signals

void encryptionChangedEvent (const QBluetoothAddress &address, bool wasSuccess)
 
void commandCompleted (quint16 opCode, quint8 status, const QByteArray &data)
 
void connectionComplete (quint16 handle)
 
void connectionUpdate (quint16 handle, const QLowEnergyConnectionParameters &parameters)
 
void signatureResolvingKeyReceived (quint16 connHandle, bool remoteKey, BluezUint128 csrk)
 
- Signals inherited from QObject
void destroyed (QObject *=nullptr)
 This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked.
 
void objectNameChanged (const QString &objectName, QPrivateSignal)
 This signal is emitted after the object's name has been changed.
 

Public Member Functions

 Q_ENUM (HciEvent)
 
 Q_ENUM (HciError)
 
 HciManager (const QBluetoothAddress &deviceAdapter)
 
 ~HciManager ()
 
bool isValid () const
 
bool monitorEvent (HciManager::HciEvent event)
 
bool monitorAclPackets ()
 
bool sendCommand (QBluezConst::OpCodeGroupField ogf, QBluezConst::OpCodeCommandField ocf, const QByteArray &parameters)
 
void stopEvents ()
 
QBluetoothAddress addressForConnectionHandle (quint16 handle) const
 
QList< quint16activeLowEnergyConnections () const
 
bool sendConnectionUpdateCommand (quint16 handle, const QLowEnergyConnectionParameters &params)
 
bool sendConnectionParameterUpdateRequest (quint16 handle, const QLowEnergyConnectionParameters &params)
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 Constructs an object with parent object parent.
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects.
 
virtual bool event (QEvent *event)
 This virtual function receives events to an object and should return true if the event e was recognized and processed.
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 Filters events if this object has been installed as an event filter for the watched object.
 
QString objectName () const
 
Q_WEAK_OVERLOAD void setObjectName (const QString &name)
 Sets the object's name to name.
 
void setObjectName (QAnyStringView name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QBindable< QStringbindableObjectName ()
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false.
 
bool isWindowType () const
 Returns true if the object is a window; otherwise returns false.
 
bool isQuickItemType () const
 Returns true if the object is a QQuickItem; otherwise returns false.
 
bool signalsBlocked () const noexcept
 Returns true if signals are blocked; otherwise returns false.
 
bool blockSignals (bool b) noexcept
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it).
 
QThreadthread () const
 Returns the thread in which the object lives.
 
bool moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL)
 Changes the thread affinity for this object and its children and returns true on success.
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds.
 
int startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer)
 
void killTimer (int id)
 Kills the timer with timer identifier, id.
 
void killTimer (Qt::TimerId id)
 
template<typename T >
findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object.
 
template<typename T >
QList< T > findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
 
template<typename T >
findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename T >
QList< T > findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
const QObjectListchildren () const
 Returns a list of child objects.
 
void setParent (QObject *parent)
 Makes the object a child of parent.
 
void installEventFilter (QObject *filterObj)
 Installs an event filter filterObj on this object.
 
void removeEventFilter (QObject *obj)
 Removes an event filter object obj from this object.
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
 
bool disconnect (const QObject *receiver, const char *member=nullptr) const
 
void dumpObjectTree () const
 Dumps a tree of children to the debug output.
 
void dumpObjectInfo () const
 Dumps information about signal connections, etc.
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value.
 
bool setProperty (const char *name, QVariant &&value)
 
QVariant property (const char *name) const
 Returns the value of the object's name property.
 
QList< QByteArraydynamicPropertyNames () const
 
QBindingStoragebindingStorage ()
 
const QBindingStoragebindingStorage () const
 
QObjectparent () const
 Returns a pointer to the parent object.
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
 
- Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 \threadsafe
 
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 \threadsafe
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static bool disconnect (const QMetaObject::Connection &)
 Disconnect a connection.
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 
template<typename Func1 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr.
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal.
 
bool isSignalConnected (const QMetaMethod &signal) const
 
virtual void timerEvent (QTimerEvent *event)
 This event handler can be reimplemented in a subclass to receive timer events for the object.
 
virtual void childEvent (QChildEvent *event)
 This event handler can be reimplemented in a subclass to receive child events.
 
virtual void customEvent (QEvent *event)
 This event handler can be reimplemented in a subclass to receive custom events.
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Properties inherited from QObject
QString objectName
 the name of this object
 

Detailed Description

Definition at line 29 of file hcimanager_p.h.

Member Enumeration Documentation

◆ HciError

enum class HciManager::HciError
strong
Enumerator
HCI_SUCCESS 
HCI_UNKNOWN_COMMAND 
HCI_NO_CONNECTION 
HCI_HARDWARE_FAILURE 
HCI_PAGE_TIMEOUT 
HCI_AUTHENTICATION_FAILURE 
HCI_PIN_OR_KEY_MISSING 
HCI_MEMORY_FULL 
HCI_CONNECTION_TIMEOUT 
HCI_MAX_NUMBER_OF_CONNECTIONS 
HCI_MAX_NUMBER_OF_SCO_CONNECTIONS 
HCI_ACL_CONNECTION_EXISTS 
HCI_COMMAND_DISALLOWED 
HCI_REJECTED_LIMITED_RESOURCES 
HCI_REJECTED_SECURITY 
HCI_REJECTED_PERSONAL 
HCI_HOST_TIMEOUT 
HCI_UNSUPPORTED_FEATURE 
HCI_INVALID_PARAMETERS 
HCI_OE_USER_ENDED_CONNECTION 
HCI_OE_LOW_RESOURCES 
HCI_OE_POWER_OFF 
HCI_CONNECTION_TERMINATED 
HCI_REPEATED_ATTEMPTS 
HCI_PAIRING_NOT_ALLOWED 
HCI_UNKNOWN_LMP_PDU 
HCI_UNSUPPORTED_REMOTE_FEATURE 
HCI_SCO_OFFSET_REJECTED 
HCI_SCO_INTERVAL_REJECTED 
HCI_AIR_MODE_REJECTED 
HCI_INVALID_LMP_PARAMETERS 
HCI_UNSPECIFIED_ERROR 
HCI_UNSUPPORTED_LMP_PARAMETER_VALUE 
HCI_ROLE_CHANGE_NOT_ALLOWED 
HCI_LMP_RESPONSE_TIMEOUT 
HCI_LMP_ERROR_TRANSACTION_COLLISION 
HCI_LMP_PDU_NOT_ALLOWED 
HCI_ENCRYPTION_MODE_NOT_ACCEPTED 
HCI_UNIT_LINK_KEY_USED 
HCI_QOS_NOT_SUPPORTED 
HCI_INSTANT_PASSED 
HCI_PAIRING_NOT_SUPPORTED 
HCI_TRANSACTION_COLLISION 
HCI_QOS_UNACCEPTABLE_PARAMETER 
HCI_QOS_REJECTED 
HCI_CLASSIFICATION_NOT_SUPPORTED 
HCI_INSUFFICIENT_SECURITY 
HCI_PARAMETER_OUT_OF_RANGE 
HCI_ROLE_SWITCH_PENDING 
HCI_SLOT_VIOLATION 
HCI_ROLE_SWITCH_FAILED 
HCI_EIR_TOO_LARGE 
HCI_SIMPLE_PAIRING_NOT_SUPPORTED 
HCI_HOST_BUSY_PAIRING 

Definition at line 101 of file hcimanager_p.h.

◆ HciEvent

enum class HciManager::HciEvent
strong
Enumerator
EVT_INQUIRY_COMPLETE 
EVT_INQUIRY_RESULT 
EVT_CONN_COMPLETE 
EVT_CONN_REQUEST 
EVT_DISCONN_COMPLETE 
EVT_AUTH_COMPLETE 
EVT_REMOTE_NAME_REQ_COMPLETE 
EVT_ENCRYPT_CHANGE 
EVT_CHANGE_CONN_LINK_KEY_COMPLETE 
EVT_MASTER_LINK_KEY_COMPLETE 
EVT_READ_REMOTE_FEATURES_COMPLETE 
EVT_READ_REMOTE_VERSION_COMPLETE 
EVT_QOS_SETUP_COMPLETE 
EVT_CMD_COMPLETE 
EVT_CMD_STATUS 
EVT_HARDWARE_ERROR 
EVT_FLUSH_OCCURRED 
EVT_ROLE_CHANGE 
EVT_NUM_COMP_PKTS 
EVT_MODE_CHANGE 
EVT_RETURN_LINK_KEYS 
EVT_PIN_CODE_REQ 
EVT_LINK_KEY_REQ 
EVT_LINK_KEY_NOTIFY 
EVT_LOOPBACK_COMMAND 
EVT_DATA_BUFFER_OVERFLOW 
EVT_MAX_SLOTS_CHANGE 
EVT_READ_CLOCK_OFFSET_COMPLETE 
EVT_CONN_PTYPE_CHANGED 
EVT_QOS_VIOLATION 
EVT_PSCAN_REP_MODE_CHANGE 
EVT_FLOW_SPEC_COMPLETE 
EVT_INQUIRY_RESULT_WITH_RSSI 
EVT_READ_REMOTE_EXT_FEATURES_COMPLETE 
EVT_SYNC_CONN_COMPLETE 
EVT_SYNC_CONN_CHANGED 
EVT_SNIFF_SUBRATING 
EVT_EXTENDED_INQUIRY_RESULT 
EVT_ENCRYPTION_KEY_REFRESH_COMPLETE 
EVT_IO_CAPABILITY_REQUEST 
EVT_IO_CAPABILITY_RESPONSE 
EVT_USER_CONFIRM_REQUEST 
EVT_USER_PASSKEY_REQUEST 
EVT_REMOTE_OOB_DATA_REQUEST 
EVT_SIMPLE_PAIRING_COMPLETE 
EVT_LINK_SUPERVISION_TIMEOUT_CHANGED 
EVT_ENHANCED_FLUSH_COMPLETE 
EVT_USER_PASSKEY_NOTIFY 
EVT_KEYPRESS_NOTIFY 
EVT_REMOTE_HOST_FEATURES_NOTIFY 
EVT_LE_META_EVENT 
EVT_PHYSICAL_LINK_COMPLETE 
EVT_CHANNEL_SELECTED 
EVT_DISCONNECT_PHYSICAL_LINK_COMPLETE 
EVT_PHYSICAL_LINK_LOSS_EARLY_WARNING 
EVT_PHYSICAL_LINK_RECOVERY 
EVT_LOGICAL_LINK_COMPLETE 
EVT_DISCONNECT_LOGICAL_LINK_COMPLETE 
EVT_FLOW_SPEC_MODIFY_COMPLETE 
EVT_NUMBER_COMPLETED_BLOCKS 
EVT_AMP_STATUS_CHANGE 
EVT_TESTING 
EVT_VENDOR 
EVT_STACK_INTERNAL 

Definition at line 33 of file hcimanager_p.h.

Constructor & Destructor Documentation

◆ HciManager()

QT_BEGIN_NAMESPACE HciManager::HciManager ( const QBluetoothAddress & deviceAdapter)
explicit

Definition at line 24 of file hcimanager.cpp.

References bind(), BTPROTO_HCI, connect(), notifier, qCWarning, QSocketNotifier::Read, SIGNAL, SLOT, and socket.

+ Here is the call graph for this function:

◆ ~HciManager()

HciManager::~HciManager ( )

Definition at line 59 of file hcimanager.cpp.

Member Function Documentation

◆ activeLowEnergyConnections()

QList< quint16 > HciManager::activeLowEnergyConnections ( ) const

Definition at line 251 of file hcimanager.cpp.

References ACL_LINK, ESCO_LINK, HCIGETCONNLIST, Qt::hex(), i, info, isValid(), LE_LINK, qCWarning, and SCO_LINK.

+ Here is the call graph for this function:

◆ addressForConnectionHandle()

QBluetoothAddress HciManager::addressForConnectionHandle ( quint16 handle) const

Definition at line 218 of file hcimanager.cpp.

References bdaddr, convertAddress(), HCIGETCONNLIST, i, info, isValid(), and qCWarning.

+ Here is the call graph for this function:

◆ commandCompleted

void HciManager::commandCompleted ( quint16 opCode,
quint8 status,
const QByteArray & data )
signal

Referenced by QLeAdvertiserBluez::QLeAdvertiserBluez(), and QLeAdvertiserBluez::~QLeAdvertiserBluez().

+ Here is the caller graph for this function:

◆ connectionComplete

void HciManager::connectionComplete ( quint16 handle)
signal

Referenced by QLowEnergyControllerPrivateBluez::init().

+ Here is the caller graph for this function:

◆ connectionUpdate

void HciManager::connectionUpdate ( quint16 handle,
const QLowEnergyConnectionParameters & parameters )
signal

Referenced by QLowEnergyControllerPrivateBluez::init().

+ Here is the caller graph for this function:

◆ encryptionChangedEvent

void HciManager::encryptionChangedEvent ( const QBluetoothAddress & address,
bool wasSuccess )
signal

◆ isValid()

bool HciManager::isValid ( ) const

Definition at line 66 of file hcimanager.cpp.

Referenced by activeLowEnergyConnections(), addressForConnectionHandle(), monitorAclPackets(), monitorEvent(), and stopEvents().

+ Here is the caller graph for this function:

◆ monitorAclPackets()

bool HciManager::monitorAclPackets ( )

Definition at line 146 of file hcimanager.cpp.

References HCI_ACL_PKT, HCI_FILTER, hci_filter_all_events(), hci_filter_set_ptype(), isValid(), qCWarning, and SOL_HCI.

+ Here is the call graph for this function:

◆ monitorEvent()

bool HciManager::monitorEvent ( HciManager::HciEvent event)

Definition at line 117 of file hcimanager.cpp.

References QSet< T >::contains(), HCI_EVENT_PKT, HCI_FILTER, hci_filter_set_event(), hci_filter_set_ptype(), isValid(), qCWarning, and SOL_HCI.

+ Here is the call graph for this function:

◆ Q_ENUM() [1/2]

HciManager::Q_ENUM ( HciError )

◆ Q_ENUM() [2/2]

HciManager::Q_ENUM ( HciEvent )

◆ sendCommand()

bool HciManager::sendCommand ( QBluezConst::OpCodeGroupField ogf,
QBluezConst::OpCodeCommandField ocf,
const QByteArray & parameters )

Definition at line 169 of file hcimanager.cpp.

References QByteArray::constData(), HCI_COMMAND_PKT, QByteArray::isEmpty(), opCodePack, qCDebug, and QByteArray::size().

Referenced by sendConnectionUpdateCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sendConnectionParameterUpdateRequest()

bool HciManager::sendConnectionParameterUpdateRequest ( quint16 handle,
const QLowEnergyConnectionParameters & params )

Definition at line 339 of file hcimanager.cpp.

References connectionUpdateData(), AclData::handle, HCI_ACL_PKT, L2CapHeader::length, qCDebug, qToLittleEndian(), and SIGNALING_CHANNEL_ID.

+ Here is the call graph for this function:

◆ sendConnectionUpdateCommand()

bool HciManager::sendConnectionUpdateCommand ( quint16 handle,
const QLowEnergyConnectionParameters & params )

Definition at line 321 of file hcimanager.cpp.

References connectionUpdateData(), QByteArray::fromRawData(), QBluezConst::OcfLeConnectionUpdate, QBluezConst::OgfLinkControl, qToLittleEndian(), and sendCommand().

+ Here is the call graph for this function:

◆ signatureResolvingKeyReceived

void HciManager::signatureResolvingKeyReceived ( quint16 connHandle,
bool remoteKey,
BluezUint128 csrk )
signal

Referenced by QLowEnergyControllerPrivateBluez::init().

+ Here is the caller graph for this function:

◆ stopEvents()

void HciManager::stopEvents ( )

Definition at line 202 of file hcimanager.cpp.

References QSet< T >::clear(), HCI_FILTER, hci_filter_clear(), isValid(), qCWarning, and SOL_HCI.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: