X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcorehighlightrulemanager.h;h=e8ae401483de1fd5b593c88cb7477f93ba3efa1f;hb=db00831bca59a012242d1ad5fac52a20c6cd2956;hp=4cf3427daddb5bacd91686c11a704e9a0d49c18b;hpb=b3b83bb123fb3087eba7147539ec0e7a34c6258b;p=quassel.git diff --git a/src/core/corehighlightrulemanager.h b/src/core/corehighlightrulemanager.h index 4cf3427d..e8ae4014 100644 --- a/src/core/corehighlightrulemanager.h +++ b/src/core/corehighlightrulemanager.h @@ -33,7 +33,6 @@ struct RawMessage; class CoreHighlightRuleManager : public HighlightRuleManager { Q_OBJECT - SYNCABLE_OBJECT using HighlightRuleManager::match; @@ -43,18 +42,21 @@ public: * * @param[in] session Pointer to the parent CoreSession (takes ownership) */ - explicit CoreHighlightRuleManager(CoreSession *session); + explicit CoreHighlightRuleManager(CoreSession* session); - virtual const QMetaObject *syncMetaObject() const override { return &HighlightRuleManager::staticMetaObject; } - - bool match(const RawMessage &msg, const QString ¤tNick, const QStringList &identityNicks); + bool match(const RawMessage& msg, const QString& currentNick, const QStringList& identityNicks); public slots: inline void requestToggleHighlightRule(int highlightRule) override { toggleHighlightRule(highlightRule); } inline void requestRemoveHighlightRule(int highlightRule) override { removeHighlightRule(highlightRule); } - inline void requestAddHighlightRule(int id, const QString &name, bool isRegEx, bool isCaseSensitive, - bool isEnabled, bool isInverse, const QString &sender, - const QString &chanName) override + inline void requestAddHighlightRule(int id, + const QString& name, + bool isRegEx, + bool isCaseSensitive, + bool isEnabled, + bool isInverse, + const QString& sender, + const QString& chanName) override { addHighlightRule(id, name, isRegEx, isCaseSensitive, isEnabled, isInverse, sender, chanName); } @@ -66,5 +68,5 @@ private slots: void save(); private: - CoreSession *_coreSession {nullptr}; ///< Pointer to the parent CoreSession + CoreSession* _coreSession{nullptr}; ///< Pointer to the parent CoreSession };