X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcorehighlightrulemanager.h;h=4daf0168e2a4ef66db9cbf41b503b383c68db215;hb=e212eabe53878a8fa6ecb15909a325ed7dd63283;hp=c8fb45086bf61277712b8cdc81cec15513723434;hpb=16f22647e6890d3eb8c3e94f7a0700e12fa29e44;p=quassel.git diff --git a/src/core/corehighlightrulemanager.h b/src/core/corehighlightrulemanager.h index c8fb4508..4daf0168 100644 --- a/src/core/corehighlightrulemanager.h +++ b/src/core/corehighlightrulemanager.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef COREHIGHLIGHTRULEMANAHER_H -#define COREHIGHLIGHTRULEMANAHER_H +#pragma once #include "highlightrulemanager.h" @@ -28,8 +27,10 @@ struct RawMessage; class CoreHighlightRuleManager : public HighlightRuleManager { + Q_OBJECT SYNCABLE_OBJECT - Q_OBJECT + + using HighlightRuleManager::match; public: explicit CoreHighlightRuleManager(CoreSession *parent); @@ -37,19 +38,17 @@ public: inline virtual const QMetaObject *syncMetaObject() const { return &HighlightRuleManager::staticMetaObject; } bool match(const RawMessage &msg, const QString ¤tNick, const QStringList &identityNicks); + public slots: virtual inline void requestToggleHighlightRule(const QString &highlightRule) { toggleHighlightRule(highlightRule); } virtual inline void requestRemoveHighlightRule(const QString &highlightRule) { removeHighlightRule(highlightRule); } - virtual inline void requestAddHighlightRule(const QString &name, bool isRegEx, bool isCaseSensitive, - bool isEnabled, const QString &chanName) + virtual inline void requestAddHighlightRule(const QString &name, bool isRegEx, bool isCaseSensitive, bool isEnabled, + bool isInverse, const QString &sender, const QString &chanName) { - addHighlightRule(name, isRegEx, isCaseSensitive, isEnabled, chanName); + addHighlightRule(name, isRegEx, isCaseSensitive, isEnabled, isInverse, sender, chanName); } private slots: void save() const; }; - - -#endif //COREHIGHLIGHTRULEMANAHER_H