// For license of this file, see <project-root-folder>/LICENSE.md.

#include "filtering/messagefilter.h"

MessageFilter::MessageFilter(int id, QObject* parent) : QObject(parent), m_id(id), m_enabled(true), m_sortOrder(0) {}

int MessageFilter::id() const {
  return m_id;
}

QString MessageFilter::name() const {
  return m_name;
}

void MessageFilter::setName(const QString& name) {
  m_name = name;
}

QString MessageFilter::script() const {
  return m_script;
}

void MessageFilter::setScript(const QString& script) {
  m_script = script;
}

bool MessageFilter::enabled() const {
  return m_enabled;
}

void MessageFilter::setEnabled(bool enabled) {
  m_enabled = enabled;
}

int MessageFilter::sortOrder() const {
  return m_sortOrder;
}

void MessageFilter::setSortOrder(int ordr) {
  m_sortOrder = ordr;
}

void MessageFilter::setId(int id) {
  m_id = id;
}
