This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-zigbee/zigbeeaddress.h
2017-10-20 15:08:00 +02:00

35 lines
772 B
C++

#ifndef ZIGBEEADDRESS_H
#define ZIGBEEADDRESS_H
#include <QByteArray>
#include <QString>
class ZigbeeAddress
{
public:
ZigbeeAddress();
explicit ZigbeeAddress(quint64 address);
explicit ZigbeeAddress(const QString &address);
ZigbeeAddress(const ZigbeeAddress &other);
~ZigbeeAddress();
quint64 toUInt64() const;
QString toString() const;
bool isNull() const;
void clear();
ZigbeeAddress &operator=(const ZigbeeAddress &other);
bool operator<(const ZigbeeAddress &other) const;
bool operator==(const ZigbeeAddress &other) const;
inline bool operator!=(const ZigbeeAddress &other) const;
private:
quint64 m_address;
};
QDebug operator<<(QDebug debug, const ZigbeeAddress &address);
#endif // ZIGBEEADDRESS_H