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
btcentralmanager.mm File Reference

(4157fc80e498a0a534728f711d908af96b5a39ba)

#include "qlowenergyserviceprivate_p.h"
#include "qlowenergycharacteristic.h"
#include "qlowenergycontroller.h"
#include "btcentralmanager_p.h"
#include "btnotifier_p.h"
#include <QtCore/qloggingcategory.h>
#include <QtCore/qdebug.h>
#include <QtCore/qmap.h>
#include <algorithm>
#include <vector>
#include <limits>
+ Include dependency graph for btcentralmanager.mm:

Go to the source code of this file.

Classes

category  DarwinBTCentralManager(PrivateAPI)
 

Namespaces

namespace  DarwinBluetooth
 

Typedefs

using DiscoveryMode = QLowEnergyService::DiscoveryMode
 

Functions

NSUInteger DarwinBluetooth::qt_countGATTEntries (CBService *service)
 
ObjCStrongReference< NSError > DarwinBluetooth::qt_timeoutNSError (OperationTimeout type)
 
auto DarwinBluetooth::qt_find_watchdog (const std::vector< GCDTimer > &watchdogs, id object, OperationTimeout type)
 

Variables

DarwinBluetooth::CentralManagerState managerState
 
bool disconnectPending
 
QBluetoothUuid deviceUuid
 
DarwinBluetooth::LECBManagerNotifiernotifier
 
DarwinBluetooth::ObjCStrongReference< NSMutableArray > servicesToVisit
 
NSUInteger currentService
 
DarwinBluetooth::ObjCStrongReference< NSMutableArray > servicesToVisitNext
 
DarwinBluetooth::ObjCStrongReference< NSMutableSet > visitedServices
 
QMap< QBluetoothUuid, DiscoveryModeservicesToDiscoverDetails
 
DarwinBluetooth::ServiceHash serviceMap
 
DarwinBluetooth::CharHash charMap
 
DarwinBluetooth::DescHash descMap
 
QLowEnergyHandle lastValidHandle
 
bool requestPending
 
DarwinBluetooth::RequestQueue requests
 
QLowEnergyHandle currentReadHandle
 
DarwinBluetooth::ValueHash valuesToWrite
 
qint64 timeoutMS
 
std::vector< DarwinBluetooth::GCDTimertimeoutWatchdogs
 
CBPeripheral * peripheral
 
int lastKnownMtu
 

Typedef Documentation

◆ DiscoveryMode

Variable Documentation

◆ charMap

Definition at line 132 of file btcentralmanager.mm.

◆ currentReadHandle

QLowEnergyHandle currentReadHandle

Definition at line 139 of file btcentralmanager.mm.

◆ currentService

NSUInteger currentService

Definition at line 123 of file btcentralmanager.mm.

◆ descMap

Definition at line 133 of file btcentralmanager.mm.

◆ deviceUuid

QBluetoothUuid deviceUuid

Definition at line 115 of file btcentralmanager.mm.

◆ disconnectPending

bool disconnectPending

Definition at line 113 of file btcentralmanager.mm.

◆ lastKnownMtu

int lastKnownMtu

Definition at line 147 of file btcentralmanager.mm.

◆ lastValidHandle

QLowEnergyHandle lastValidHandle

Definition at line 135 of file btcentralmanager.mm.

◆ managerState

Initial value:
{
@private
CBCentralManager *manager
QNetworkAccessManager manager

Definition at line 112 of file btcentralmanager.mm.

◆ notifier

Definition at line 117 of file btcentralmanager.mm.

Referenced by BluetoothManagement::BluetoothManagement(), HciManager::HciManager(), QPulseAudioSink::~QPulseAudioSink(), QPulseAudioSource::~QPulseAudioSource(), QEventDispatcherUNIXPrivate::activateSocketNotifiers(), QQmlNotifierEndpoint::connect(), QEventDispatcherWin32::doUnregisterSocketNotifier(), QQmlNotifierEndpoint::isConnected(), QLowEnergyControllerPrivateDarwin::lazyInit(), QEventDispatcherUNIXPrivate::markPendingSocketNotifiers(), QAndroidMediaPlayer::pause(), QAndroidMediaPlayer::play(), QCFSocketNotifier::registerSocketNotifier(), QCocoaEventDispatcher::registerSocketNotifier(), QEventDispatcherUNIX::registerSocketNotifier(), QEventDispatcherWasm::registerSocketNotifier(), QEventDispatcherWin32::registerSocketNotifier(), QEventDispatcherGlib::registerSocketNotifier(), QPulseAudioSink::reset(), QPulseAudioSource::reset(), QPulseAudioSink::resume(), QPulseAudioSource::resume(), QEglFSKmsEventReaderThread::run(), QIntegrityHIDManager::run(), QErrorInfo< ErrorCode, NoError >::setAndNotify(), QAndroidMediaPlayer::setMedia(), QAndroidMediaPlayer::setPosition(), QEventDispatcherUNIXPrivate::setSocketNotifierPending(), QDarwinAudioSink::stop(), QPulseAudioSink::stop(), QPulseAudioSource::stop(), QAndroidMediaPlayer::stop(), QPulseAudioSink::suspend(), QPulseAudioSource::suspend(), QCFSocketNotifier::unregisterSocketNotifier(), QCocoaEventDispatcher::unregisterSocketNotifier(), QEventDispatcherUNIX::unregisterSocketNotifier(), QEventDispatcherWasm::unregisterSocketNotifier(), QEventDispatcherWin32::unregisterSocketNotifier(), and QEventDispatcherGlib::unregisterSocketNotifier().

◆ peripheral

CBPeripheral* peripheral

Definition at line 146 of file btcentralmanager.mm.

◆ requestPending

bool requestPending

Definition at line 137 of file btcentralmanager.mm.

◆ requests

◆ serviceMap

Definition at line 131 of file btcentralmanager.mm.

Referenced by operator>>().

◆ servicesToDiscoverDetails

QMap<QBluetoothUuid, DiscoveryMode> servicesToDiscoverDetails

Definition at line 129 of file btcentralmanager.mm.

◆ servicesToVisit

DarwinBluetooth::ObjCStrongReference<NSMutableArray> servicesToVisit

Definition at line 121 of file btcentralmanager.mm.

◆ servicesToVisitNext

DarwinBluetooth::ObjCStrongReference<NSMutableArray> servicesToVisitNext

Definition at line 125 of file btcentralmanager.mm.

◆ timeoutMS

qint64 timeoutMS

Definition at line 143 of file btcentralmanager.mm.

◆ timeoutWatchdogs

Definition at line 144 of file btcentralmanager.mm.

◆ valuesToWrite

Definition at line 141 of file btcentralmanager.mm.

◆ visitedServices

DarwinBluetooth::ObjCStrongReference<NSMutableSet> visitedServices

Definition at line 127 of file btcentralmanager.mm.