Add assign operator for zigbee security configuration

This commit is contained in:
Simon Stürz 2020-01-13 09:35:26 +01:00
parent a6c937466e
commit 60db89ce74
2 changed files with 8 additions and 0 deletions

View File

@ -48,6 +48,13 @@ void ZigbeeSecurityConfiguration::clear()
m_globalTrustCenterLinkKey = "5A6967426565416C6C69616E63653039";
}
ZigbeeSecurityConfiguration &ZigbeeSecurityConfiguration::operator=(const ZigbeeSecurityConfiguration &other)
{
m_networkKey = other.networkKey();
m_globalTrustCenterLinkKey = other.globalTrustCenterLinkKey();
return *this;
}
bool ZigbeeSecurityConfiguration::operator==(const ZigbeeSecurityConfiguration &other) const
{
return m_networkKey == other.networkKey() && m_globalTrustCenterLinkKey == other.globalTrustCenterLinkKey() && m_zigbeeSecurityMode == other.zigbeeSecurityMode();

View File

@ -26,6 +26,7 @@ public:
void clear();
ZigbeeSecurityConfiguration &operator=(const ZigbeeSecurityConfiguration &other);
bool operator==(const ZigbeeSecurityConfiguration &other) const;
bool operator!=(const ZigbeeSecurityConfiguration &other) const;