Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QtOhosBluetooth Namespace Reference

Namespaces

namespace  enums

Classes

class  QOhosBluetoothAccessProxy
struct  DiscoveryResult
class  QOhosBluetoothDeviceDiscoveryAgentProxy
class  QOhosBluetoothLocalDeviceProxy
struct  RemoteDeviceServices
class  QOhosBluetoothRemoteDeviceProxy
class  QOhosBluetoothServerProxy
class  QOhosBluetoothSocketProxy
struct  QOhosBluetoothServerProxyContext

Enumerations

enum class  QOhosBluetoothErrorCode : std::uint32_t {
  PermissionDenied = 201 , InvalidParameter = 401 , CapabilityNotSupported = 801 , ServiceStopped = 2900001 ,
  BluetoothDisabled = 2900003 , ProfileNotSupported = 2900004 , UserDidNotRespond = 2900013 , UserRefused = 2900014 ,
  OperationFailed = 2900099 , InputOutput = 2901054
}

Functions

std::optional< QOhosBluetoothErrorCode > tryGetKnownErrorCode (const QNapi::Value &errorValue, const char *callerContextName)
bool checkAccessBluetoothPermissionGranted (const char *callerContextName)
std::optional< QtOhosBluetooth::enums::ohos::bluetooth::access::BluetoothState > readBluetoothState (QOhosJsState &jsState)
bool isBluetoothEnabled (QOhosJsState &jsState)
std::optional< std::string > readRemoteDeviceName (QOhosJsState &jsState, const std::string &deviceId)
std::optional< quint32 > readRemoteDeviceClass (QOhosJsState &jsState, const std::string &deviceId)
std::optional< QOhosBluetoothRemoteDeviceProxy::BluetoothTransport > readRemoteDeviceTransport (QOhosJsState &jsState, const std::string &deviceId)
bool isRemoteDeviceLowEnergyOnly (QOhosJsState &jsState, const std::string &deviceId)
std::shared_ptr< int > makeSppClientSocketHandle (int socketDescriptor)
std::shared_ptr< int > makeSppServerSocketHandle (int socketDescriptor)
std::shared_ptr< QOhosBluetoothServerProxyContext > makeServerProxyContext (quint16 port)
std::shared_ptr< QOhosBluetoothServerProxyContext > tryGetServerProxyContext (quint16 port)
bool isServiceNameAlreadyRegistered (const QString &serviceName)

Variables

constexpr int invalidSocketDescriptor = -1

Enumeration Type Documentation

◆ QOhosBluetoothErrorCode

enum class QtOhosBluetooth::QOhosBluetoothErrorCode : std::uint32_t
strong
Enumerator
PermissionDenied 
InvalidParameter 
CapabilityNotSupported 
ServiceStopped 
BluetoothDisabled 
ProfileNotSupported 
UserDidNotRespond 
UserRefused 
OperationFailed 
InputOutput 

Definition at line 30 of file qohosbluetoothcommon_p.h.

Function Documentation

◆ checkAccessBluetoothPermissionGranted()

bool QtOhosBluetooth::checkAccessBluetoothPermissionGranted ( const char * callerContextName)

Definition at line 85 of file qohosbluetoothcommon.cpp.

◆ isBluetoothEnabled()

bool QtOhosBluetooth::isBluetoothEnabled ( QOhosJsState & jsState)

Definition at line 117 of file qohosbluetoothcommon.cpp.

◆ isRemoteDeviceLowEnergyOnly()

bool QtOhosBluetooth::isRemoteDeviceLowEnergyOnly ( QOhosJsState & jsState,
const std::string & deviceId )

Definition at line 128 of file qohosbluetoothremotedevice.cpp.

◆ isServiceNameAlreadyRegistered()

bool QtOhosBluetooth::isServiceNameAlreadyRegistered ( const QString & serviceName)

Definition at line 72 of file qbluetoothserver_ohos_p.cpp.

◆ makeServerProxyContext()

std::shared_ptr< QOhosBluetoothServerProxyContext > QtOhosBluetooth::makeServerProxyContext ( quint16 port)

Definition at line 44 of file qbluetoothserver_ohos_p.cpp.

◆ makeSppClientSocketHandle()

std::shared_ptr< int > QtOhosBluetooth::makeSppClientSocketHandle ( int socketDescriptor)

Definition at line 57 of file qohosbluetoothsocket.cpp.

◆ makeSppServerSocketHandle()

std::shared_ptr< int > QtOhosBluetooth::makeSppServerSocketHandle ( int socketDescriptor)

Definition at line 62 of file qohosbluetoothsocket.cpp.

◆ readBluetoothState()

std::optional< QtOhosBluetooth::enums::ohos::bluetooth::access::BluetoothState > QtOhosBluetooth::readBluetoothState ( QOhosJsState & jsState)

Definition at line 99 of file qohosbluetoothcommon.cpp.

◆ readRemoteDeviceClass()

std::optional< quint32 > QtOhosBluetooth::readRemoteDeviceClass ( QOhosJsState & jsState,
const std::string & deviceId )

Definition at line 95 of file qohosbluetoothremotedevice.cpp.

◆ readRemoteDeviceName()

std::optional< std::string > QtOhosBluetooth::readRemoteDeviceName ( QOhosJsState & jsState,
const std::string & deviceId )

Definition at line 80 of file qohosbluetoothremotedevice.cpp.

◆ readRemoteDeviceTransport()

std::optional< QOhosBluetoothRemoteDeviceProxy::BluetoothTransport > QtOhosBluetooth::readRemoteDeviceTransport ( QOhosJsState & jsState,
const std::string & deviceId )

Definition at line 111 of file qohosbluetoothremotedevice.cpp.

◆ tryGetKnownErrorCode()

std::optional< QOhosBluetoothErrorCode > QtOhosBluetooth::tryGetKnownErrorCode ( const QNapi::Value & errorValue,
const char * callerContextName )

◆ tryGetServerProxyContext()

std::shared_ptr< QOhosBluetoothServerProxyContext > QtOhosBluetooth::tryGetServerProxyContext ( quint16 port)

Definition at line 63 of file qbluetoothserver_ohos_p.cpp.

Variable Documentation

◆ invalidSocketDescriptor

int QtOhosBluetooth::invalidSocketDescriptor = -1
constexpr

Definition at line 36 of file qohosbluetoothsocket_p.h.