nymea-zigbee/libnymea-zigbee/zigbeesecurityconfiguration...

43 lines
1.1 KiB
C++

#include "zigbeesecurityconfiguration.h"
ZigbeeSecurityConfiguration::ZigbeeSecurityConfiguration()
{
}
ZigbeeSecurityConfiguration::ZigbeeSecurityConfiguration(const ZigbeeSecurityConfiguration &other)
{
m_networkKey = other.networkKey();
m_globalTrustCenterLinkKey = other.networkKey();
}
QString ZigbeeSecurityConfiguration::networkKey() const
{
return m_networkKey;
}
void ZigbeeSecurityConfiguration::setNetworkKey(const QString &networkKey)
{
m_networkKey = networkKey;
}
QString ZigbeeSecurityConfiguration::globalTrustCenterLinkKey() const
{
return m_globalTrustCenterLinkKey;
}
void ZigbeeSecurityConfiguration::setGlobalTrustCenterlinkKey(const QString &globalTrustCenterLinkKey)
{
m_globalTrustCenterLinkKey = globalTrustCenterLinkKey;
}
bool ZigbeeSecurityConfiguration::operator==(const ZigbeeSecurityConfiguration &other) const
{
return m_networkKey == other.networkKey() && m_globalTrustCenterLinkKey == other.globalTrustCenterLinkKey();
}
bool ZigbeeSecurityConfiguration::operator!=(const ZigbeeSecurityConfiguration &other) const
{
return !operator==(other);
}