Класс 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/archives/qt-5.6/qbluetoothaddress.html