+void QtUiMessageProcessor::highlightNickChanged(const QVariant& variant)
+{
+ _highlightNick = (HighlightNickType)variant.toInt();
+ // Convert from QtUiMessageProcessor::HighlightNickType (which is from NotificationSettings) to
+ // NickHighlightMatcher::HighlightNickType
+ _nickMatcher.setHighlightMode(static_cast<NickHighlightMatcher::HighlightNickType>(_highlightNick));
+}
+
+void QtUiMessageProcessor::networkRemoved(NetworkId id)
+{
+ // Clean up nickname matching cache
+ _nickMatcher.removeNetwork(id);
+}
+
+/**************************************************************************
+ * LegacyHighlightRule
+ *************************************************************************/
+bool QtUiMessageProcessor::LegacyHighlightRule::operator!=(const LegacyHighlightRule& other) const
+{
+ return (_contents != other._contents || _isRegEx != other._isRegEx || _isCaseSensitive != other._isCaseSensitive
+ || _isEnabled != other._isEnabled || _chanName != other._chanName);
+ // Don't compare ExpressionMatch objects as they are created as needed from the above
+}