X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fcorehighlightrulemanager.h;h=4daf0168e2a4ef66db9cbf41b503b383c68db215;hb=aec9c711900a443bfa7860fa86c6e9c86b81a3e7;hp=5f2db906d792003610e933a9a33ed47a715e30f3;hpb=ebe14ade2f3496aefc8926ce704a161c4451fedd;p=quassel.git diff --git a/src/core/corehighlightrulemanager.h b/src/core/corehighlightrulemanager.h index 5f2db906..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,6 +38,7 @@ 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); } @@ -50,6 +52,3 @@ public slots: private slots: void save() const; }; - - -#endif //COREHIGHLIGHTRULEMANAHER_H