X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fhighlightrulemanager.h;h=5a2d4a87b36e7390f9446ad1c77eb78870550ca1;hp=d98c8675d08364627a5d2bc02083a2c405a104b5;hb=3a3e844f9fcfd12235a0086af75ecd503b621ef4;hpb=ee8b9f55860e340c1600188fddcfd557c7489f66 diff --git a/src/common/highlightrulemanager.h b/src/common/highlightrulemanager.h index d98c8675..5a2d4a87 100644 --- a/src/common/highlightrulemanager.h +++ b/src/common/highlightrulemanager.h @@ -20,6 +20,8 @@ #pragma once +#include "common-export.h" + #include #include @@ -32,10 +34,10 @@ #include "nickhighlightmatcher.h" #include "syncableobject.h" -class HighlightRuleManager : public SyncableObject +class COMMON_EXPORT HighlightRuleManager : public SyncableObject { - SYNCABLE_OBJECT Q_OBJECT + SYNCABLE_OBJECT Q_PROPERTY(int highlightNick READ highlightNick WRITE setHighlightNick) Q_PROPERTY(bool nicksCaseSensitive READ nicksCaseSensitive WRITE setNicksCaseSensitive) @@ -53,7 +55,7 @@ public: /** * Individual highlight rule */ - class HighlightRule + class COMMON_EXPORT HighlightRule { public: /** @@ -75,8 +77,8 @@ public: */ HighlightRule(int id, QString contents, bool isRegEx, bool isCaseSensitive, bool isEnabled, bool isInverse, QString sender, QString chanName) - : _id(id), _contents(contents), _isRegEx(isRegEx), _isCaseSensitive(isCaseSensitive), - _isEnabled(isEnabled), _isInverse(isInverse), _sender(sender), _chanName(chanName) + : _id(id), _contents(std::move(contents)), _isRegEx(isRegEx), _isCaseSensitive(isCaseSensitive), + _isEnabled(isEnabled), _isInverse(isInverse), _sender(std::move(sender)), _chanName(std::move(chanName)) { _cacheInvalid = true; // Cache expression matches on construction