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
org.qtproject.qt.android.bluetooth.QtBluetoothLEServer Class Reference
+ Collaboration diagram for org.qtproject.qt.android.bluetooth.QtBluetoothLEServer:

Public Member Functions

synchronized String remoteName ()
 
synchronized String remoteAddress ()
 
 QtBluetoothLEServer (Context context)
 
synchronized void handleOnConnectionStateChange (BluetoothDevice device, int status, int newState)
 
synchronized void handleOnServiceAdded (int status, BluetoothGattService service)
 
synchronized void handleOnCharacteristicReadRequest (BluetoothDevice device, int requestId, int offset, BluetoothGattCharacteristic characteristic)
 
synchronized void handleOnCharacteristicWriteRequest (BluetoothDevice device, int requestId, BluetoothGattCharacteristic characteristic, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value)
 
synchronized void handleOnDescriptorReadRequest (BluetoothDevice device, int requestId, int offset, BluetoothGattDescriptor descriptor)
 
synchronized void handleOnDescriptorWriteRequest (BluetoothDevice device, int requestId, BluetoothGattDescriptor descriptor, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value)
 
synchronized void handleOnExecuteWrite (BluetoothDevice device, int requestId, boolean execute)
 
synchronized void handleOnMtuChanged (BluetoothDevice device, int mtu)
 
synchronized int mtu ()
 
synchronized boolean connectServer ()
 
synchronized void disconnectServer ()
 
boolean startAdvertising (AdvertiseData advertiseData, AdvertiseData scanResponse, AdvertiseSettings settings)
 
void stopAdvertising ()
 
synchronized void addService (BluetoothGattService service)
 
boolean writeCharacteristic (BluetoothGattService service, UUID charUuid, byte[] newValue)
 
boolean writeDescriptor (BluetoothGattService service, UUID charUuid, UUID descUuid, byte[] newValue)
 
native void leConnectionStateChange (long qtObject, int errorCode, int newState)
 
native void leMtuChanged (long qtObject, int mtu)
 
native void leServerAdvertisementError (long qtObject, int status)
 
native void leServerCharacteristicChanged (long qtObject, BluetoothGattCharacteristic characteristic, byte[] newValue)
 
native void leServerDescriptorWritten (long qtObject, BluetoothGattDescriptor descriptor, byte[] newValue)
 

Detailed Description

Definition at line 36 of file QtBluetoothLEServer.java.

Constructor & Destructor Documentation

◆ QtBluetoothLEServer()

org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.QtBluetoothLEServer ( Context context)
inline

Definition at line 250 of file QtBluetoothLEServer.java.

References context, and TAG.

Member Function Documentation

◆ addService()

synchronized void org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.addService ( BluetoothGattService service)
inline

Definition at line 788 of file QtBluetoothLEServer.java.

References org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.connectServer(), and TAG.

+ Here is the call graph for this function:

◆ connectServer()

synchronized boolean org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.connectServer ( )
inline

Definition at line 714 of file QtBluetoothLEServer.java.

References manager, and TAG.

Referenced by org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.addService(), and org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.startAdvertising().

+ Here is the caller graph for this function:

◆ disconnectServer()

synchronized void org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.disconnectServer ( )
inline

Definition at line 731 of file QtBluetoothLEServer.java.

References org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.leConnectionStateChange().

+ Here is the call graph for this function:

◆ handleOnCharacteristicReadRequest()

synchronized void org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.handleOnCharacteristicReadRequest ( BluetoothDevice device,
int requestId,
int offset,
BluetoothGattCharacteristic characteristic )
inline

Definition at line 385 of file QtBluetoothLEServer.java.

References device, requestId, and TAG.

◆ handleOnCharacteristicWriteRequest()

synchronized void org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.handleOnCharacteristicWriteRequest ( BluetoothDevice device,
int requestId,
BluetoothGattCharacteristic characteristic,
boolean preparedWrite,
boolean responseNeeded,
int offset,
byte[] value )
inline

Definition at line 411 of file QtBluetoothLEServer.java.

References device, org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.leServerCharacteristicChanged(), requestId, and TAG.

+ Here is the call graph for this function:

◆ handleOnConnectionStateChange()

synchronized void org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.handleOnConnectionStateChange ( BluetoothDevice device,
int status,
int newState )
inline

Definition at line 287 of file QtBluetoothLEServer.java.

References device, org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.leConnectionStateChange(), newState(), and TAG.

+ Here is the call graph for this function:

◆ handleOnDescriptorReadRequest()

synchronized void org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.handleOnDescriptorReadRequest ( BluetoothDevice device,
int requestId,
int offset,
BluetoothGattDescriptor descriptor )
inline

Definition at line 463 of file QtBluetoothLEServer.java.

References device, requestId, and TAG.

◆ handleOnDescriptorWriteRequest()

synchronized void org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.handleOnDescriptorWriteRequest ( BluetoothDevice device,
int requestId,
BluetoothGattDescriptor descriptor,
boolean preparedWrite,
boolean responseNeeded,
int offset,
byte[] value )
inline

Definition at line 493 of file QtBluetoothLEServer.java.

References device, org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.leServerDescriptorWritten(), requestId, and TAG.

+ Here is the call graph for this function:

◆ handleOnExecuteWrite()

synchronized void org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.handleOnExecuteWrite ( BluetoothDevice device,
int requestId,
boolean execute )
inline

Definition at line 546 of file QtBluetoothLEServer.java.

References currentValue, device, org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.leServerCharacteristicChanged(), org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.leServerDescriptorWritten(), requestId, TAG, and write().

+ Here is the call graph for this function:

◆ handleOnMtuChanged()

synchronized void org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.handleOnMtuChanged ( BluetoothDevice device,
int mtu )
inline

Definition at line 630 of file QtBluetoothLEServer.java.

References org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.leMtuChanged(), and org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.mtu().

+ Here is the call graph for this function:

◆ handleOnServiceAdded()

synchronized void org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.handleOnServiceAdded ( int status,
BluetoothGattService service )
inline

Definition at line 354 of file QtBluetoothLEServer.java.

References TAG.

◆ leConnectionStateChange()

native void org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.leConnectionStateChange ( long qtObject,
int errorCode,
int newState )

Referenced by org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.disconnectServer(), and org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.handleOnConnectionStateChange().

+ Here is the caller graph for this function:

◆ leMtuChanged()

native void org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.leMtuChanged ( long qtObject,
int mtu )

Referenced by org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.handleOnMtuChanged().

+ Here is the caller graph for this function:

◆ leServerAdvertisementError()

native void org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.leServerAdvertisementError ( long qtObject,
int status )

◆ leServerCharacteristicChanged()

native void org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.leServerCharacteristicChanged ( long qtObject,
BluetoothGattCharacteristic characteristic,
byte[] newValue )

Referenced by org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.handleOnCharacteristicWriteRequest(), and org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.handleOnExecuteWrite().

+ Here is the caller graph for this function:

◆ leServerDescriptorWritten()

native void org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.leServerDescriptorWritten ( long qtObject,
BluetoothGattDescriptor descriptor,
byte[] newValue )

Referenced by org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.handleOnDescriptorWriteRequest(), and org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.handleOnExecuteWrite().

+ Here is the caller graph for this function:

◆ mtu()

synchronized int org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.mtu ( )
inline

Definition at line 709 of file QtBluetoothLEServer.java.

Referenced by org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.handleOnMtuChanged().

+ Here is the caller graph for this function:

◆ remoteAddress()

synchronized String org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.remoteAddress ( )
inline

Definition at line 63 of file QtBluetoothLEServer.java.

◆ remoteName()

synchronized String org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.remoteName ( )
inline

Definition at line 57 of file QtBluetoothLEServer.java.

◆ startAdvertising()

boolean org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.startAdvertising ( AdvertiseData advertiseData,
AdvertiseData scanResponse,
AdvertiseSettings settings )
inline

Definition at line 747 of file QtBluetoothLEServer.java.

References org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.connectServer(), settings, and TAG.

+ Here is the call graph for this function:

◆ stopAdvertising()

void org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.stopAdvertising ( )
inline

Definition at line 778 of file QtBluetoothLEServer.java.

References TAG.

◆ writeCharacteristic()

boolean org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.writeCharacteristic ( BluetoothGattService service,
UUID charUuid,
byte[] newValue )
inline

Definition at line 857 of file QtBluetoothLEServer.java.

References iter, and TAG.

◆ writeDescriptor()

boolean org.qtproject.qt.android.bluetooth.QtBluetoothLEServer.writeDescriptor ( BluetoothGattService service,
UUID charUuid,
UUID descUuid,
byte[] newValue )
inline

Definition at line 903 of file QtBluetoothLEServer.java.

References iter, and TAG.


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