X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fhighlightrulemanager.h;h=b606a0a8a7bf61d6fc4bb1caf664fa5196ec1d0e;hp=75834d15e27e8a8d889282a15c99dceb7c8d9172;hb=7678f2402fdb01b03b359a2266f1e7427894d82a;hpb=908c7068213307be405b80788996403a0ab9fd3c diff --git a/src/common/highlightrulemanager.h b/src/common/highlightrulemanager.h index 75834d15..b606a0a8 100644 --- a/src/common/highlightrulemanager.h +++ b/src/common/highlightrulemanager.h @@ -46,11 +46,13 @@ public: bool isRegEx = false; bool isCaseSensitive = false; bool isEnabled = true; + bool isInverse = false; QString chanName; HighlightRule() {} HighlightRule(const QString &name_, bool isRegEx_, bool isCaseSensitive_, - bool isEnabled_, const QString &chanName_) - : name(name_), isRegEx(isRegEx_), isCaseSensitive(isCaseSensitive_), isEnabled(isEnabled_), chanName(chanName_) { + bool isEnabled_, bool isInverse_, const QString &chanName_) + : name(name_), isRegEx(isRegEx_), isCaseSensitive(isCaseSensitive_), isEnabled(isEnabled_), + isInverse(isInverse_), chanName(chanName_) { } bool operator!=(const HighlightRule &other) { @@ -58,6 +60,7 @@ public: isRegEx != other.isRegEx || isCaseSensitive != other.isCaseSensitive || isEnabled != other.isEnabled || + isInverse != other.isInverse || chanName != other.chanName); } }; @@ -111,14 +114,14 @@ public slots: * @param chanName The channel in which the rule should apply */ virtual inline void requestAddHighlightRule(const QString &name, bool isRegEx, bool isCaseSensitive, bool isEnabled, - const QString &chanName) + bool isInverse, const QString &chanName) { - REQUEST(ARG(name), ARG(isRegEx), ARG(isCaseSensitive), ARG(isEnabled), ARG(chanName)) + REQUEST(ARG(name), ARG(isRegEx), ARG(isCaseSensitive), ARG(isEnabled), ARG(isInverse), ARG(chanName)) } virtual void addHighlightRule(const QString &name, bool isRegEx, bool isCaseSensitive, - bool isEnabled, const QString &chanName); + bool isEnabled, bool isInverse, const QString &chanName); virtual inline void requestSetHighlightNick(HighlightNickType highlightNick) { @@ -138,7 +141,7 @@ protected: bool _match(const QString &msgContents, const QString &msgSender, Message::Type msgType, Message::Flags msgFlags, const QString &bufferName, const QString ¤tNick, const QStringList identityNicks); signals: - void ruleAdded(QString name, bool isRegEx, bool isCaseSensitive, bool isEnabled, QString chanName); + void ruleAdded(QString name, bool isRegEx, bool isCaseSensitive, bool isEnabled, bool isInverse, QString chanName); private: HighlightRuleList _highlightRuleList;