+
+void QtUiMessageProcessor::highlightListChanged(const QVariant &variant) {
+ QVariantList varList = variant.toList();
+
+ _highlightRules.clear();
+ QVariantList::const_iterator iter = varList.constBegin();
+ QVariantList::const_iterator iterEnd = varList.constEnd();
+ while(iter != iterEnd) {
+ QVariantMap rule;
+ _highlightRules << HighlightRule(rule["name"].toString(),
+ rule["enable"].toBool(),
+ rule["cs"].toBool() ? Qt::CaseSensitive : Qt::CaseInsensitive,
+ rule["regex"].toBool());
+ iter++;
+ }
+}
+
+void QtUiMessageProcessor::highlightNickChanged(const QVariant &variant) {
+ _highlightNick = (NotificationSettings::HighlightNickType)variant.toInt();
+}