/* Copyright (c) 2001 Heiko Hund Copyright (c) 2001 Thorsten Zachmann This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "kmpopheaders.h" #include KMPopHeaders::KMPopHeaders() : mAction(NoAction), mId(), mUid(), mRuleMatched(false), mHeader(0) { } KMPopHeaders::~KMPopHeaders() { if (mHeader) delete mHeader; } /** No descriptions */ KMPopHeaders::KMPopHeaders( const QByteArray & aId, const QByteArray & aUid, KMPopFilterAction aAction ) : mAction(aAction), mId(aId), mUid(aUid), mRuleMatched(false), mHeader(0) { } /** No descriptions */ QByteArray KMPopHeaders::id() const { return mId; } /** No descriptions */ QByteArray KMPopHeaders::uid() const { return mUid; } /** No descriptions */ KMMessage * KMPopHeaders::header() const { return mHeader; } /** No descriptions */ void KMPopHeaders::setHeader(KMMessage *aHeader) { mHeader = aHeader; } /** No descriptions */ KMPopFilterAction KMPopHeaders::action() const { return mAction; } /** No descriptions */ void KMPopHeaders::setAction(KMPopFilterAction aAction) { mAction = aAction; } /** No descriptions */ void KMPopHeaders::setRuleMatched(bool b) { mRuleMatched = b; } /** No descriptions */ bool KMPopHeaders::ruleMatched() const { return mRuleMatched; }