#pragma once
+#include "common-export.h"
+
#include <utility>
#include <QString>
#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)
/**
* Individual highlight rule
*/
- class HighlightRule
+ class COMMON_EXPORT HighlightRule
{
public:
/**
* Construct an empty highlight rule
*/
- HighlightRule() {}
+ HighlightRule() = default;
/**
* Construct a highlight rule with the given parameters
*/
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