Merge PR #4: Add assign operator for zigbee security configuration
This commit is contained in:
commit
003985b8d0
@ -8,6 +8,7 @@ ZigbeeSecurityConfiguration::ZigbeeSecurityConfiguration()
|
|||||||
ZigbeeSecurityConfiguration::ZigbeeSecurityConfiguration(const ZigbeeSecurityConfiguration &other)
|
ZigbeeSecurityConfiguration::ZigbeeSecurityConfiguration(const ZigbeeSecurityConfiguration &other)
|
||||||
{
|
{
|
||||||
m_networkKey = other.networkKey();
|
m_networkKey = other.networkKey();
|
||||||
|
m_zigbeeSecurityMode = other.zigbeeSecurityMode();
|
||||||
m_globalTrustCenterLinkKey = other.networkKey();
|
m_globalTrustCenterLinkKey = other.networkKey();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,6 +49,14 @@ void ZigbeeSecurityConfiguration::clear()
|
|||||||
m_globalTrustCenterLinkKey = "5A6967426565416C6C69616E63653039";
|
m_globalTrustCenterLinkKey = "5A6967426565416C6C69616E63653039";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ZigbeeSecurityConfiguration &ZigbeeSecurityConfiguration::operator=(const ZigbeeSecurityConfiguration &other)
|
||||||
|
{
|
||||||
|
m_networkKey = other.networkKey();
|
||||||
|
m_zigbeeSecurityMode = other.zigbeeSecurityMode();
|
||||||
|
m_globalTrustCenterLinkKey = other.globalTrustCenterLinkKey();
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
bool ZigbeeSecurityConfiguration::operator==(const ZigbeeSecurityConfiguration &other) const
|
bool ZigbeeSecurityConfiguration::operator==(const ZigbeeSecurityConfiguration &other) const
|
||||||
{
|
{
|
||||||
return m_networkKey == other.networkKey() && m_globalTrustCenterLinkKey == other.globalTrustCenterLinkKey() && m_zigbeeSecurityMode == other.zigbeeSecurityMode();
|
return m_networkKey == other.networkKey() && m_globalTrustCenterLinkKey == other.globalTrustCenterLinkKey() && m_zigbeeSecurityMode == other.zigbeeSecurityMode();
|
||||||
|
|||||||
@ -26,6 +26,7 @@ public:
|
|||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
|
ZigbeeSecurityConfiguration &operator=(const ZigbeeSecurityConfiguration &other);
|
||||||
bool operator==(const ZigbeeSecurityConfiguration &other) const;
|
bool operator==(const ZigbeeSecurityConfiguration &other) const;
|
||||||
bool operator!=(const ZigbeeSecurityConfiguration &other) const;
|
bool operator!=(const ZigbeeSecurityConfiguration &other) const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user