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
QBluetoothServiceDiscoveryAgentPrivate Class Reference

#include <qbluetoothservicediscoveryagent_p.h>

+ Collaboration diagram for QBluetoothServiceDiscoveryAgentPrivate:

Public Types

enum  DiscoveryState { Inactive , DeviceDiscovery , ServiceDiscovery }
 

Public Member Functions

 QBluetoothServiceDiscoveryAgentPrivate (QBluetoothServiceDiscoveryAgent *qp, const QBluetoothAddress &deviceAdapter)
 
 ~QBluetoothServiceDiscoveryAgentPrivate ()
 
void startDeviceDiscovery ()
 Starts device discovery.
 
void stopDeviceDiscovery ()
 Stops device discovery.
 
void startServiceDiscovery ()
 Starts service discovery for the next device.
 
void stopServiceDiscovery ()
 Stops service discovery.
 
void setDiscoveryState (DiscoveryState s)
 
DiscoveryState discoveryState ()
 
void setDiscoveryMode (QBluetoothServiceDiscoveryAgent::DiscoveryMode m)
 
QBluetoothServiceDiscoveryAgent::DiscoveryMode DiscoveryMode ()
 
void _q_deviceDiscoveryFinished ()
 Called when device discovery finishes.
 
void _q_deviceDiscovered (const QBluetoothDeviceInfo &info)
 
void _q_serviceDiscoveryFinished ()
 
void _q_deviceDiscoveryError (QBluetoothDeviceDiscoveryAgent::Error)
 

Public Attributes

QBluetoothServiceDiscoveryAgent::Error error
 
QString errorString
 
QBluetoothAddress deviceAddress
 
QList< QBluetoothServiceInfodiscoveredServices
 
QList< QBluetoothDeviceInfodiscoveredDevices
 
QBluetoothAddress m_deviceAdapterAddress
 

Protected Attributes

QBluetoothServiceDiscoveryAgentq_ptr
 

Detailed Description

Definition at line 65 of file qbluetoothservicediscoveryagent_p.h.

Member Enumeration Documentation

◆ DiscoveryState

Enumerator
Inactive 
DeviceDiscovery 
ServiceDiscovery 

Definition at line 79 of file qbluetoothservicediscoveryagent_p.h.

Constructor & Destructor Documentation

◆ QBluetoothServiceDiscoveryAgentPrivate()

QBluetoothServiceDiscoveryAgentPrivate::QBluetoothServiceDiscoveryAgentPrivate ( QBluetoothServiceDiscoveryAgent * qp,
const QBluetoothAddress & deviceAdapter )

Definition at line 26 of file qbluetoothservicediscoveryagent_android.cpp.

References QBluetoothLocalDevice::allDevices(), getDefaultBluetoothAdapter(), info, match(), and qCWarning.

+ Here is the call graph for this function:

◆ ~QBluetoothServiceDiscoveryAgentPrivate()

QBluetoothServiceDiscoveryAgentPrivate::~QBluetoothServiceDiscoveryAgentPrivate ( )

Definition at line 70 of file qbluetoothservicediscoveryagent_android.cpp.

Member Function Documentation

◆ _q_deviceDiscovered()

void QBluetoothServiceDiscoveryAgentPrivate::_q_deviceDiscovered ( const QBluetoothDeviceInfo & info)

Definition at line 489 of file qbluetoothservicediscoveryagent.cpp.

References discoveredDevices, erase_if(), info, and QList< T >::prepend().

Referenced by startDeviceDiscovery().

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

◆ _q_deviceDiscoveryError()

void QBluetoothServiceDiscoveryAgentPrivate::_q_deviceDiscoveryError ( QBluetoothDeviceDiscoveryAgent::Error newError)

Definition at line 499 of file qbluetoothservicediscoveryagent.cpp.

References QObject::disconnect(), emit, error, QBluetoothDeviceDiscoveryAgent::errorString(), errorString, Inactive, setDiscoveryState(), and QBluetoothDeviceDiscoveryAgent::stop().

Referenced by startDeviceDiscovery().

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

◆ _q_deviceDiscoveryFinished()

void QBluetoothServiceDiscoveryAgentPrivate::_q_deviceDiscoveryFinished ( )

Called when device discovery finishes.

Definition at line 470 of file qbluetoothservicediscoveryagent.cpp.

References emit, QBluetoothDeviceDiscoveryAgent::error(), error, QBluetoothDeviceDiscoveryAgent::errorString(), errorString, Inactive, QBluetoothDeviceDiscoveryAgent::NoError, setDiscoveryState(), and startServiceDiscovery().

Referenced by startDeviceDiscovery().

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

◆ _q_serviceDiscoveryFinished()

void QBluetoothServiceDiscoveryAgentPrivate::_q_serviceDiscoveryFinished ( )

Definition at line 545 of file qbluetoothservicediscoveryagent.cpp.

References discoveredDevices, QList< T >::isEmpty(), QList< T >::removeFirst(), and startServiceDiscovery().

+ Here is the call graph for this function:

◆ DiscoveryMode()

QBluetoothServiceDiscoveryAgent::DiscoveryMode QBluetoothServiceDiscoveryAgentPrivate::DiscoveryMode ( )
inline

Definition at line 98 of file qbluetoothservicediscoveryagent_p.h.

◆ discoveryState()

DiscoveryState QBluetoothServiceDiscoveryAgentPrivate::discoveryState ( )
inline

Definition at line 95 of file qbluetoothservicediscoveryagent_p.h.

◆ setDiscoveryMode()

void QBluetoothServiceDiscoveryAgentPrivate::setDiscoveryMode ( QBluetoothServiceDiscoveryAgent::DiscoveryMode m)
inline

Definition at line 97 of file qbluetoothservicediscoveryagent_p.h.

◆ setDiscoveryState()

void QBluetoothServiceDiscoveryAgentPrivate::setDiscoveryState ( DiscoveryState s)
inline

Definition at line 94 of file qbluetoothservicediscoveryagent_p.h.

Referenced by _q_deviceDiscoveryError(), _q_deviceDiscoveryFinished(), startDeviceDiscovery(), startServiceDiscovery(), stopDeviceDiscovery(), and stopServiceDiscovery().

+ Here is the caller graph for this function:

◆ startDeviceDiscovery()

void QBluetoothServiceDiscoveryAgentPrivate::startDeviceDiscovery ( )

◆ startServiceDiscovery()

void QBluetoothServiceDiscoveryAgentPrivate::startServiceDiscovery ( )

Starts service discovery for the next device.

Definition at line 521 of file qbluetoothservicediscoveryagent.cpp.

References QBluetoothDeviceInfo::address(), QList< T >::at(), discoveredDevices, emit, Inactive, QList< T >::isEmpty(), ServiceDiscovery, and setDiscoveryState().

Referenced by _q_deviceDiscoveryFinished(), and _q_serviceDiscoveryFinished().

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

◆ stopDeviceDiscovery()

void QBluetoothServiceDiscoveryAgentPrivate::stopDeviceDiscovery ( )

Stops device discovery.

Definition at line 451 of file qbluetoothservicediscoveryagent.cpp.

References QObject::disconnect(), emit, Inactive, setDiscoveryState(), and QBluetoothDeviceDiscoveryAgent::stop().

+ Here is the call graph for this function:

◆ stopServiceDiscovery()

void QBluetoothServiceDiscoveryAgentPrivate::stopServiceDiscovery ( )

Stops service discovery.

Definition at line 538 of file qbluetoothservicediscoveryagent.cpp.

References Inactive, and setDiscoveryState().

+ Here is the call graph for this function:

Member Data Documentation

◆ deviceAddress

QBluetoothAddress QBluetoothServiceDiscoveryAgentPrivate::deviceAddress

◆ discoveredDevices

QList<QBluetoothDeviceInfo> QBluetoothServiceDiscoveryAgentPrivate::discoveredDevices

◆ discoveredServices

QList<QBluetoothServiceInfo> QBluetoothServiceDiscoveryAgentPrivate::discoveredServices

Definition at line 138 of file qbluetoothservicediscoveryagent_p.h.

◆ error

◆ errorString

◆ m_deviceAdapterAddress

QBluetoothAddress QBluetoothServiceDiscoveryAgentPrivate::m_deviceAdapterAddress

Definition at line 140 of file qbluetoothservicediscoveryagent_p.h.

Referenced by startDeviceDiscovery().

◆ q_ptr

QBluetoothServiceDiscoveryAgent* QBluetoothServiceDiscoveryAgentPrivate::q_ptr
protected

Definition at line 196 of file qbluetoothservicediscoveryagent_p.h.


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