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/libnymea-zigbee/zigbeenetworkkey.h

37 lines
740 B
C++

#ifndef ZIGBEENETWORKKEY_H
#define ZIGBEENETWORKKEY_H
#include <QDebug>
#include <QString>
#include <QByteArray>
class ZigbeeNetworkKey
{
public:
ZigbeeNetworkKey();
ZigbeeNetworkKey(const QString &key);
ZigbeeNetworkKey(const QByteArray &keyString);
bool isValid() const;
bool isNull() const;
QString toString() const;
QByteArray toByteArray() const;
static ZigbeeNetworkKey generateKey();
ZigbeeNetworkKey &operator=(const ZigbeeNetworkKey &other);
bool operator==(const ZigbeeNetworkKey &other) const;
bool operator!=(const ZigbeeNetworkKey &other) const;
private:
QByteArray m_key;
};
QDebug operator<<(QDebug debug, const ZigbeeNetworkKey &key);
#endif // ZIGBEENETWORKKEY_H