X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorehighlightrulemanager.h;h=828c6f0f198f775cf7ce85ab5611da7aee0557d2;hp=064852494116acf81b1bc217e3e08ddb107500b1;hb=edc55b1f86cf613a332eeeb5d85537a54120dfa5;hpb=3e63cb8a6e83765069a45101b86ae9e21dcc57ad diff --git a/src/core/corehighlightrulemanager.h b/src/core/corehighlightrulemanager.h index 06485249..828c6f0f 100644 --- a/src/core/corehighlightrulemanager.h +++ b/src/core/corehighlightrulemanager.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -42,16 +42,21 @@ public: * * @param[in] session Pointer to the parent CoreSession (takes ownership) */ - explicit CoreHighlightRuleManager(CoreSession *session); + explicit CoreHighlightRuleManager(CoreSession* session); - 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); } @@ -63,5 +68,5 @@ private slots: void save(); private: - CoreSession *_coreSession {nullptr}; ///< Pointer to the parent CoreSession + CoreSession* _coreSession{nullptr}; ///< Pointer to the parent CoreSession };