Initial Channel specific highlights feature implementation
[quassel.git] / src / qtui / qtuimessageprocessor.h
index 57ed9bc..3073c7b 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
-*   Copyright (C) 2005-08 by the Quassel Project                          *
+*   Copyright (C) 2005-09 by the Quassel Project                          *
 *   devel@quassel-irc.org                                                 *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
@@ -48,32 +48,33 @@ public slots:
 
 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();
-  void updateProgress(bool start = false);
 
   QList<QList<Message> > _processQueue;
   QList<Message> _currentBatch;
   QTimer _processTimer;
   bool _processing;
   Mode _processMode;
-  int _msgsProcessed, _msgCount;
-  QTime _progressTimer;
 
   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) {}
+    QString chanName;
+    inline HighlightRule(const QString &name, bool enabled, Qt::CaseSensitivity cs, bool regExp, const QString &chanName)
+    : name(name), isEnabled(enabled), caseSensitive(cs), isRegExp(regExp), chanName(chanName) {}
   };
-  
+
   QList<HighlightRule> _highlightRules;
   NotificationSettings::HighlightNickType _highlightNick;
+  bool _nicksCaseSensitive;
 };
 
 #endif