Skip to content

BluetoothUuid

Qt Base Class: QBluetoothUuid

Signature: QBluetoothUuid(self) -> None QBluetoothUuid(self, uuid: PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType) -> None QBluetoothUuid(self, uuid: PySide6.QtBluetooth.QBluetoothUuid.DescriptorType) -> None QBluetoothUuid(self, uuid: PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid) -> None QBluetoothUuid(self, uuid: PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid) -> None QBluetoothUuid(self, uuid: PySide6.QtCore.QUuid) -> None QBluetoothUuid(self, uuid: str) -> None QBluetoothUuid(self, uuid: int) -> None QBluetoothUuid(self, uuid: int) -> None QBluetoothUuid(self, uuid: Union[PySide6.QtBluetooth.QBluetoothUuid, PySide6.QtBluetooth.QBluetoothUuid.CharacteristicType, PySide6.QtBluetooth.QBluetoothUuid.DescriptorType, PySide6.QtBluetooth.QBluetoothUuid.ProtocolUuid, PySide6.QtBluetooth.QBluetoothUuid.ServiceClassUuid, PySide6.QtCore.QUuid]) -> None

Base classes

Name Children Inherits
UuidMixin
prettyqt.core.uuid
QBluetoothUuid
PySide6.QtBluetooth
QBluetoothUuid(self) -> None

⋔ Inheritance diagram

graph TD
  1473367541456["bluetooth.BluetoothUuid"]
  1473299804288["core.UuidMixin"]
  140713234304496["builtins.object"]
  1473367198496["QtBluetooth.QBluetoothUuid"]
  1473243708096["QtCore.QUuid"]
  1473291690208["Shiboken.Object"]
  1473299804288 --> 1473367541456
  140713234304496 --> 1473299804288
  1473367198496 --> 1473367541456
  1473243708096 --> 1473367198496
  1473291690208 --> 1473243708096
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: UuidMixin, QBluetoothUuid

Generates a UUID for each Bluetooth service.

Source code in prettyqt\bluetooth\bluetoothuuid.py
class BluetoothUuid(core.UuidMixin, QtBluetooth.QBluetoothUuid):
    """Generates a UUID for each Bluetooth service."""

    @classmethod
    def characteristic_to_string(cls, characteristic: CharacteristicTypeStr | md) -> str:
        """Return string representation for given characteristic."""
        return cls.characteristicToString(
            CHARACTERISTIC_TYPES.get_enum_value(characteristic)
        )

    @classmethod
    def descriptor_to_string(cls, descriptor: DescriptorTypeStr | dt) -> str:
        """Return string representation for given descriptor."""
        return cls.descriptorToString(DESCRIPTOR_TYPE.get_enum_value(descriptor))

    @classmethod
    def protocol_to_string(cls, protocol: ProtocolUuidstr | pu) -> str:
        """Return string representation for given protocol."""
        return cls.protocolToString(PROTOCOL_UUID.get_enum_value(protocol))

    @classmethod
    def service_class_to_string(cls, service_class: DescriptorTypeStr | su) -> str:
        """Return string representation for given service class."""
        return cls.serviceClassToString(SERVICE_CLASS_UUID.get_enum_value(service_class))

characteristic_to_string(characteristic: CharacteristicTypeStr | md) -> str classmethod

Return string representation for given characteristic.

Source code in prettyqt\bluetooth\bluetoothuuid.py
@classmethod
def characteristic_to_string(cls, characteristic: CharacteristicTypeStr | md) -> str:
    """Return string representation for given characteristic."""
    return cls.characteristicToString(
        CHARACTERISTIC_TYPES.get_enum_value(characteristic)
    )

descriptor_to_string(descriptor: DescriptorTypeStr | dt) -> str classmethod

Return string representation for given descriptor.

Source code in prettyqt\bluetooth\bluetoothuuid.py
@classmethod
def descriptor_to_string(cls, descriptor: DescriptorTypeStr | dt) -> str:
    """Return string representation for given descriptor."""
    return cls.descriptorToString(DESCRIPTOR_TYPE.get_enum_value(descriptor))

protocol_to_string(protocol: ProtocolUuidstr | pu) -> str classmethod

Return string representation for given protocol.

Source code in prettyqt\bluetooth\bluetoothuuid.py
@classmethod
def protocol_to_string(cls, protocol: ProtocolUuidstr | pu) -> str:
    """Return string representation for given protocol."""
    return cls.protocolToString(PROTOCOL_UUID.get_enum_value(protocol))

service_class_to_string(service_class: DescriptorTypeStr | su) -> str classmethod

Return string representation for given service class.

Source code in prettyqt\bluetooth\bluetoothuuid.py
@classmethod
def service_class_to_string(cls, service_class: DescriptorTypeStr | su) -> str:
    """Return string representation for given service class."""
    return cls.serviceClassToString(SERVICE_CLASS_UUID.get_enum_value(service_class))