Add a clear method to channel mask

This commit is contained in:
Michael Zanetti 2021-10-21 18:47:22 +02:00
parent c5d9b119af
commit b6301ab9c9
2 changed files with 6 additions and 0 deletions

View File

@ -153,3 +153,8 @@ QDebug operator<<(QDebug debug, const ZigbeeChannelMask &channelMaks)
debug.nospace() << ") ";
return debug;
}
void ZigbeeChannelMask::clear()
{
m_channelMask = 0;
}

View File

@ -59,6 +59,7 @@ public:
bool isSet(Zigbee::ZigbeeChannel channel) const;
void setChannel(Zigbee::ZigbeeChannel channel);
void unsetChannel(Zigbee::ZigbeeChannel channel);
void clear();
ZigbeeChannelMask &operator=(const ZigbeeChannelMask &other);
bool operator==(const ZigbeeChannelMask &other) const;