17class QT6_ONLY(Q_BLUETOOTH_EXPORT) QBluetoothAddress
20 constexpr QBluetoothAddress()
noexcept {};
21 constexpr explicit QBluetoothAddress(quint64 address)
noexcept : m_address(address) {};
22 QT7_ONLY(Q_BLUETOOTH_EXPORT)
23 explicit QBluetoothAddress(
const QString &address);
24#if QT_VERSION < QT_VERSION_CHECK(7
, 0
, 0
)
25 QT_BLUETOOTH_INLINE_SINCE(6, 6)
26 QBluetoothAddress(
const QBluetoothAddress &other)
noexcept;
27 QT_BLUETOOTH_INLINE_SINCE(6, 6)
30 QT_BLUETOOTH_INLINE_SINCE(6, 6)
31 QBluetoothAddress &operator=(
const QBluetoothAddress &other)
noexcept;
32 QBluetoothAddress(QBluetoothAddress &&)
noexcept =
default;
33 QBluetoothAddress &operator=(QBluetoothAddress &&)
noexcept =
default;
36 QT_BLUETOOTH_INLINE_SINCE(6, 6)
37 bool isNull()
const noexcept;
39 QT_BLUETOOTH_INLINE_SINCE(6, 6)
40 void clear()
noexcept;
42 friend bool operator<(
const QBluetoothAddress &a,
const QBluetoothAddress &b)
44 return a.m_address < b.m_address;
46 friend bool operator==(
const QBluetoothAddress &a,
const QBluetoothAddress &b)
48 return a.m_address == b.m_address;
50 inline friend bool operator!=(
const QBluetoothAddress &a,
const QBluetoothAddress &b)
52 return a.m_address != b.m_address;
55 QT_BLUETOOTH_INLINE_SINCE(6, 6)
56 quint64 toUInt64()
const noexcept;
57 QT7_ONLY(Q_BLUETOOTH_EXPORT)
58 QString toString()
const;
61 quint64 m_address = { 0 };
62 friend QT7_ONLY(
constexpr) size_t qHash(
const QBluetoothAddress &key, size_t seed = 0)
noexcept
63 {
return qHash(key.m_address, seed); }
64#ifndef QT_NO_DEBUG_STREAM
65 friend QDebug operator<<(QDebug d,
const QBluetoothAddress &a)
67 return streamingOperator(d, a);
69 QT7_ONLY(Q_BLUETOOTH_EXPORT)
70 static QDebug streamingOperator(QDebug,
const QBluetoothAddress &address);