4#include <QRandomGenerator>
36 explicit MACAddress(
const QVector<quint8> &address);
42 QVector<quint8>
toArray()
const;
45 quint64
toInt()
const;
73 QVector<quint8> m_address{QVector<quint8>() << 0 << 0 << 0 << 0 << 0 << 0};
Represents a Media Access Control (MAC) address.
Definition macaddress.h:26
quint64 toInt() const
Converts the MAC address to an integer format.
Definition macaddress.cpp:22
bool operator<(const MACAddress &other) const
Overload of the less than operator.
Definition macaddress.cpp:42
MACAddress()=default
Default constructor initializing an empty MAC address.
static MACAddress getRandomAddress()
Generates a random MAC address.
Definition macaddress.cpp:33
bool operator==(const MACAddress &other) const
Overload of the equality operator.
Definition macaddress.cpp:46
QVector< quint8 > toArray() const
Converts the MAC address to a byte array.
Definition macaddress.cpp:18
QString toString() const
Converts the MAC address to a string format.
Definition macaddress.cpp:9