Spec-Zone.ru › Qt 5.9

Класс QBluetoothAddress

Класс QBluetoothAddress присваивает адрес устройству Bluetooth. Подробнее...

Заголовок: #include <QBluetoothAddress>
qmake: QT += bluetooth
С тех пор: Qt 5.2
  • Список всех членов, включая унаследованные

Публичные функции

QBluetoothAddress()
QBluetoothAddress(quint64 address)
QBluetoothAddress(const QString &address)
QBluetoothAddress(const QBluetoothAddress &other)
~QBluetoothAddress()
void clear()
bool isNull() const
QString toString() const
quint64 toUInt64() const
bool operator!=(const QBluetoothAddress &other) const
bool operator<(const QBluetoothAddress &other) const
QBluetoothAddress & operator=(const QBluetoothAddress &other)
bool operator==(const QBluetoothAddress &other) const

Подробное описание

Класс QBluetoothAddress присваивает адрес устройству Bluetooth.

Этот класс хранит адрес Bluetooth независимо от платформы и протокола.

Документация по функциям-членам

QBluetoothAddress::QBluetoothAddress()

Создаёт нулевой адрес Bluetooth.

QBluetoothAddress::QBluetoothAddress(quint64 address)

Создаёт новый адрес Bluetooth и присваивает ему address.

QBluetoothAddress::QBluetoothAddress(const QString &address)

Создаёт новый адрес Bluetooth и присваивает ему address.

Формат address может быть либо XX:XX:XX:XX:XX:XX, либо XXXXXXXXXXXX, где X — шестнадцатеричная цифра. Регистр не учитывается.

QBluetoothAddress::QBluetoothAddress(const QBluetoothAddress &other)

Создаёт новый адрес Bluetooth, который является копией other.

QBluetoothAddress::~QBluetoothAddress()

Уничтожает QBluetoothAddress.

void QBluetoothAddress::clear()

Устанавливает адрес Bluetooth в 00:00:00:00:00:00.

bool QBluetoothAddress::isNull() const

Возвращает true, если адрес Bluetooth равен null, иначе возвращает false.

QString QBluetoothAddress::toString() const

Возвращает адрес Bluetooth в виде строки формата XX:XX:XX:XX:XX:XX.

quint64 QBluetoothAddress::toUInt64() const

Возвращает адрес Bluetooth как quint64.

bool QBluetoothAddress::operator!=(const QBluetoothAddress &other) const

Сравнивает этот адрес Bluetooth с other.

Возвращает true, если адреса Bluetooth не равны, иначе возвращает false.

bool QBluetoothAddress::operator<(const QBluetoothAddress &other) const

Возвращает true, если адрес Bluetooth меньше other, иначе возвращает false.

QBluetoothAddress &QBluetoothAddress::operator=(const QBluetoothAddress &other)

Присваивает other этому адресу Bluetooth.

bool QBluetoothAddress::operator==(const QBluetoothAddress &other) const

Сравнивает этот адрес Bluetooth с other.

Возвращает true, если два адреса Bluetooth равны, иначе возвращает false.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.9/qbluetoothaddress.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API