X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreignorelistmanager.h;h=d7d5c9cf043f1662b57223fb97c72903bd0c1fa5;hp=9576c1b0c30526fc707e07f2dd1c3826cf6d387d;hb=393ac8b4bca9db98f297cb4756ef2e79364bf6f0;hpb=27302bba72a29977e81b9a0b2d8cde3a62ebc818 diff --git a/src/core/coreignorelistmanager.h b/src/core/coreignorelistmanager.h index 9576c1b0..d7d5c9cf 100644 --- a/src/core/coreignorelistmanager.h +++ b/src/core/coreignorelistmanager.h @@ -24,16 +24,30 @@ #include "ignorelistmanager.h" class CoreSession; +struct RawMessage; class CoreIgnoreListManager : public IgnoreListManager { + SYNCABLE_OBJECT Q_OBJECT public: explicit CoreIgnoreListManager(CoreSession *parent); - ~CoreIgnoreListManager(); inline virtual const QMetaObject *syncMetaObject() const { return &IgnoreListManager::staticMetaObject; } + StrictnessType match(const RawMessage &rawMsg, const QString &networkName); + +public slots: + virtual inline void requestToggleIgnoreRule(const QString &ignoreRule) { toggleIgnoreRule(ignoreRule); } + virtual inline void requestRemoveIgnoreListItem(const QString &ignoreRule) { removeIgnoreListItem(ignoreRule); } + virtual inline void requestAddIgnoreListItem(int type, const QString &ignoreRule, bool isRegEx, int strictness, + int scope, const QString &scopeRule, bool isActive) { + addIgnoreListItem(type, ignoreRule, isRegEx, strictness, scope, scopeRule, isActive); + } + +private slots: + void save() const; + //private: // void loadDefaults();