+private slots:
+ void processNextMessage();
+ void nicksCaseSensitiveChanged(const QVariant &variant);
+ void highlightListChanged(const QVariant &variant);
+ void highlightNickChanged(const QVariant &variant);
+
+private:
+ void checkForHighlight(Message &msg);
+ void startProcessing();
+
+ QList<QList<Message> > _processQueue;
+ QList<Message> _currentBatch;
+ QTimer _processTimer;
+ bool _processing;
+ Mode _processMode;
+
+ struct HighlightRule {
+ QString name;
+ bool isEnabled;
+ Qt::CaseSensitivity caseSensitive;
+ bool isRegExp;
+ inline HighlightRule(const QString &name, bool enabled, Qt::CaseSensitivity cs, bool regExp)
+ : name(name), isEnabled(enabled), caseSensitive(cs), isRegExp(regExp) {}
+ };
+
+ QList<HighlightRule> _highlightRules;
+ NotificationSettings::HighlightNickType _highlightNick;
+ bool _nicksCaseSensitive;